diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -3,11 +3,12 @@ include config.mk TOBJ = ui.o canvas.o user.o palette.o tools.o debug.o OBJ = $(addprefix build/, ${TOBJ}) -all: build run - -build: ${OBJ} src/cdraw.c +build: prep config.h ${OBJ} src/cdraw.c ${CC} ${CFLAGS} ${LIBS} ${OBJ} src/cdraw.c -o build/cdraw +config.h: + cp config.def.h config.h + prep: mkdir -p build @@ -20,3 +21,5 @@ build/%.o: src/%.c clean: rm $(OBJ) rm build/cdraw + +.PHONY: build clean run prep |