aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 208a03f04289ddbdbfa0e673e21c19c542f4a85a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
CC = clang

PROJECT = engine33
OBJS = main.o system33.o input33.o logger33.o font33.o strings33.o ui33.o clock33.o display33.o graphics33.o math33.o scene33.o

PDIR = ./bin
.PATH: ./src

INCS = -I./include -I./include/musl

LIBS = -L./lib/musl

CFLAGS = -march=native -mtune=native -std=c89 -static -w -Wall -Werror -Wextra -Wshadow -Wpedantic -D_POSIX_C_SOURCE=200809L

.MAKE.JOBS = 1C


.SUFFIXES: .o .c
.c.o:
	$(CC) $(CFLAGS) -o $(.TARGET) $(INCS) -c $(.IMPSRC)


$(PROJECT): $(OBJS)
	$(CC) $(CFLAGS) $(LIBS) -o $(.TARGET) $(.OODATE)
	mkdir -p $(PDIR)
	mv $(.TARGET) $(.ALLSRC:T) $(PDIR)

clean:
	rm bin/*.o