comparison Makefile @ 47:7cb4ca7cf257

Use a common.c file to hold concurrent functions Also I fixed that 1.4 KB bug I think
author Paper <mrpapersonic@gmail.com>
date Sat, 21 May 2022 18:41:54 -0400
parents 7103ac60ebdc
children 652343b56a60
comparison
equal deleted inserted replaced
46:7cb9fad3f5ee 47:7cb4ca7cf257
2 LD_FLAGS= 2 LD_FLAGS=
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 7 msvpvf: src/main.o src/common.o
8 $(CC) -o $@ $< $(CC_FLAGS) $(LD_FLAGS) 8 $(CC) -o $@ $^ $(CC_FLAGS) $(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 11 gui: src/gui.o src/common.o
12 $(CC) -o $@ $< $(CC_FLAGS) $(LD_FLAGS) -mwindows 12 $(CC) -o $@ $^ $(CC_FLAGS) $(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