aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 2efa90a8af01ffc968d9a6b4db40e5e9f379f238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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