First commit.
This commit is contained in:
23
Makefile
Normal file
23
Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
CC = gcc
|
||||
SOURCES = src/main.c
|
||||
OBJECTS = obj/main.o
|
||||
TARGET = bin/cyjam
|
||||
CFLAGS = -Wall -I./include
|
||||
LDFLAGS = -L./lib
|
||||
LDLIBS = -lm -lisland -lfov -lncurses
|
||||
|
||||
all: CFLAGS += -O3
|
||||
all: $(TARGET)
|
||||
|
||||
debug: CFLAGS += -g
|
||||
debug: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJECTS)
|
||||
$(CC) -o $(TARGET) $(OBJECTS) $(CLFAGS) $(LDFLAGS) $(LDLIBS)
|
||||
|
||||
obj/main.o: src/main.c
|
||||
$(CC) -c -o $@ $< $(CFLAGS)
|
||||
|
||||
clean:
|
||||
$(RM) $(TARGET) $(OBJECTS)
|
||||
|
||||
Reference in New Issue
Block a user