1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
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 ${CC} ${CFLAGS} ${LIBS} ${OBJ} src/cdraw.c -o build/cdraw prep: mkdir -p build run: ./build/cdraw build/%.o: src/%.c ${CC} ${CFLAGS} $< -c -o $@ clean: rm $(OBJ) rm build/cdraw