ClassiCube/src/Makefile

17 lines
331 B
Makefile
Raw Normal View History

2018-10-14 02:31:13 -04:00
CC=gcc
LIBS=-lGL -lcurl -lopenal -lpthread -lX11 -lm
2018-10-25 12:53:05 -04:00
CFLAGS=-g -w -no-pie
2018-10-14 02:31:13 -04:00
SOURCES=$(wildcard *.c)
OBJECTS=$(patsubst %.c, %.o, $(SOURCES))
EXECUTABLE=ClassiCube
$(EXECUTABLE): $(OBJECTS)
$(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LIBS)
$(OBJECTS): %.o : %.c
$(CC) $(CFLAGS) -c $< $(LIBS) -o $@
clean:
2018-10-14 02:54:17 -04:00
rm -f $(EXECUTABLE) $(OBJECTS)