opengl-triangle

Basic application that draws triangle on a window using opengl
Index Commits Files Refs
Makefile (316B)
   1 CC := gcc
   2 CLIBS := -lglfw -lGL
   3 CFLAGS := -Wall -Wshadow -ansi -std=c99 -O3
   4 SRCS := $(wildcard *.c)
   5 OBJS := $(SRCS:.c=.o)
   6 
   7 TARGET := opengl-example
   8 
   9 .PHONY: all clean
  10 
  11 all: $(TARGET)
  12 
  13 $(TARGET): $(OBJS)
  14     $(CC) $(CFLAGS) $^ -o $@ $(CLIBS) 
  15     rm -f $(OBJS)
  16 
  17 %.o: %.c
  18     $(CC) $(CFLAGS) -c $< -o $@ 
  19 
  20 clean:
  21     rm -f $(OBJS)