aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 36e86d774be59aeaac838ca5083dad7d1994faf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CC = gcc
PLATFORM = unix

DUCKY_OBJ = src/ducky.o

CFLAGS = -lbsd -lm -O2 -g -I src/ -I target/$(PLATFORM)

$(PLATFORM).bin: $(DUCKY_OBJ) target/$(PLATFORM)/main.o
	$(CC) $(DUCKY_OBJ) target/$(PLATFORM)/main.o $(CFLAGS) -o $(PLATFORM).bin

clean:
	rm -f $(PLATFORM).bin
	rm -f target/$(PLATFORM)/main.o
	rm -f $(DUCKY_OBJ)