diff options
author | pk33 <pk33@pk33.space> | 2024-11-01 23:51:15 +0100 |
---|---|---|
committer | pk33 <pk33@pk33.space> | 2024-11-01 23:51:15 +0100 |
commit | 294b585994da4427ac98a8353ff41aed5f301d54 (patch) | |
tree | aafcd885c1fe28819ef1a511da5e6344411b5597 /makefile | |
parent | f0958551b43959174d28b2056f584d2081494e6c (diff) | |
download | engine33-294b585994da4427ac98a8353ff41aed5f301d54.tar.gz |
Import and fix old code
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..65dd0ed --- /dev/null +++ b/makefile @@ -0,0 +1,30 @@ +CC = clang + +PROJECT = engine33 +OBJS = main.o system.o logger.o clock.o display.o + +PDIR = ./bin +.PATH: ./src + +INCS = -I./include -I./include/musl -I./include/libdrm + +LIBS = -L./lib/musl -L./lib/libdrm + +CFLAGS = -O2 -march=native -mtune=native -std=c99 -static -w -Wall -Werror -Wextra -Wshadow -Wpedantic -D_XOPEN_SOURCE=700 +#stops soypilers complaining about signals + +.MAKE.JOBS = 1C + + +.SUFFIXES: .o .c +.c.o: + $(CC) $(CFLAGS) -o $(.TARGET) $(INCS) -c $(.IMPSRC) + + +$(PROJECT): $(OBJS) + $(CC) $(CFLAGS) $(LIBS) -o $(.TARGET) $(.OODATE) + mv $(.TARGET) $(.ALLSRC:T) $(PDIR) + +clean: + rm bin/*.out + |