comparison Makefile @ 53:bc85395ff699

[Makefile] Remove unused functions
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Sun, 22 May 2022 04:27:55 -0400
parents 652343b56a60
children 76698158a01a
comparison
equal deleted inserted replaced
52:cf9a14755472 53:bc85395ff699
1 CC_FLAGS=-Wall -O2 1 CC_FLAGS=-Wall -O2 -fstack-protector -fdata-sections -ffunction-sections
2 LD_FLAGS= 2 LD_FLAGS=-Wl,--gc-sections
3 3
4 src/%.o : src/%.c 4 src/%.o : src/%.c
5 $(CC) -c $(CC_FLAGS) $< -o $@ 5 $(CC) -c $(CC_FLAGS) $< -o $@
6 6
7 msvpvf: src/main.o src/common.o 7 msvpvf: src/main.o src/common.o
8 $(CC) -o $@ $^ $(CC_FLAGS) $(LD_FLAGS) 8 $(CC) $(CC_FLAGS) -o $@ $^ $(LD_FLAGS)
9 9
10 # GUI is windows-only, please use cross-compiler! 10 # GUI is windows-only, please use cross-compiler!
11 gui: src/gui.o src/common.o 11 gui: src/gui.o src/common.o
12 $(CC) -o $@ $^ $(CC_FLAGS) $(LD_FLAGS) -mwindows -fstack-protector 12 $(CC) $(CC_FLAGS) -o $@ $^ $(LD_FLAGS) -mwindows
13 13
14 clean: 14 clean:
15 rm -f src/*.o *.exe msvpvf gui 15 rm -f src/*.o *.exe msvpvf gui