comparison Makefile @ 6:d1e5b8390cd3

Add Windows GUI version and a multitude of other changes
author Paper <mrpapersonic@gmail.com>
date Wed, 26 Jan 2022 20:25:08 -0500
parents 87c7d43b03ff
children 7103ac60ebdc
comparison
equal deleted inserted replaced
5:92ec47e63923 6:d1e5b8390cd3
1 CC=clang # clang cause gcc throws compiling errors that i don't know how to fix 1 CC=clang
2 CC_FLAGS=-Wall -static -O2 2 CC_FLAGS=-Wall -O2
3 LD_FLAGS=-ffunction-sections 3 LD_FLAGS=
4 4
5 %.o : %.c 5 src/%.o : src/%.c
6 $(CC) -c $(CC_FLAGS) $< -o $@ 6 $(CC) -c $(CC_FLAGS) $< -o $@
7 7
8 msvpvf: msvpvf.o 8 msvpvf: src/main.o
9 $(CC) -o $@ $< $(CC_FLAGS) $(LD_FLAGS) 9 $(CC) -o $@ $< $(CC_FLAGS) $(LD_FLAGS)
10 10
11 # GUI is windows-only, please use cross-compiler!
12 gui: src/gui.o
13 $(CC) -o $@ $< $(CC_FLAGS) $(LD_FLAGS) -mwindows
14
11 clean: 15 clean:
12 rm -f *.o 16 rm -f src/*.o *.exe msvpvf gui
13 rm -f msvpvf msvpvf.exe