initial files
This commit is contained in:
27
Makefile
Normal file
27
Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
#
|
||||
|
||||
BINDIR=./bin
|
||||
SRCDIR=./src
|
||||
|
||||
SRC=$(wildcard $(SRCDIR)/*.c)
|
||||
INC=$(wildcard $(SRCDIR)/*.h)
|
||||
BIN=fen
|
||||
|
||||
CFLAGS += -std=c99
|
||||
CFLAGS += -g
|
||||
CFLAGS += -Wall
|
||||
CFLAGS += -Wextra
|
||||
CFLAGS += -pedantic
|
||||
#CFLAGS += -Werror
|
||||
CFLAGS += -Wmissing-declarations
|
||||
|
||||
all: clean $(BIN)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf *.o core $(BIN)
|
||||
|
||||
fen: CFLAGS+=-DFENBIN
|
||||
fen: $(SRC)
|
||||
echo SRC=$(SRC)
|
||||
$(CC) $(CFLAGS) $? -o $@
|
Reference in New Issue
Block a user