Excellent state.
This commit is contained in:
commit
d85fb2e638
5 changed files with 1796 additions and 0 deletions
19
Makefile
Normal file
19
Makefile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
CC ?= gcc
|
||||
CFLAGS ?= -O2 -Wall -Wextra -std=c11
|
||||
PKGS = glfw3 glu
|
||||
CPPFLAGS += $(shell pkg-config --cflags $(PKGS))
|
||||
LDLIBS += $(shell pkg-config --libs $(PKGS)) -lGL -lm
|
||||
|
||||
TARGET = vectorgons
|
||||
SRC = vectorgons.c
|
||||
|
||||
$(TARGET): $(SRC)
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(SRC) $(LDLIBS)
|
||||
|
||||
run: $(TARGET)
|
||||
./$(TARGET)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
|
||||
.PHONY: run clean
|
||||
Loading…
Add table
Add a link
Reference in a new issue