include config.mk OBJ = ui.o canvas.o user.o palette.o tools.o debug.o all: build run build: ${OBJ} src/cdraw.c mkdir build ${CC} ${CFLAGS} ${LIBS} ${OBJ} src/cdraw.c -o build/cdraw run: ./build/cdraw %.o: src/%.c ${CC} ${CFLAGS} $< -c clean: rm *.o rm build/cdraw