annotate Makefile @ 56:0d62f49c1948

Update gui.c
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Mon, 18 Jul 2022 12:03:45 -0400
parents dbed5f51d635
children 83b8fdb45d5e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
53
bc85395ff699 [Makefile] Remove unused functions
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 48
diff changeset
1 CC_FLAGS=-Wall -O2 -fstack-protector -fdata-sections -ffunction-sections
54
76698158a01a Fix building on macOS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 53
diff changeset
2 LD_FLAGS=
76698158a01a Fix building on macOS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 53
diff changeset
3
55
dbed5f51d635 Thanks, Google!
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 54
diff changeset
4 ifeq ($(shell uname -s),Darwin) # macOS is the odd one...
54
76698158a01a Fix building on macOS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 53
diff changeset
5 LD_FLAGS+=-Wl,-dead_strip
76698158a01a Fix building on macOS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 53
diff changeset
6 else
76698158a01a Fix building on macOS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 53
diff changeset
7 LD_FLAGS+=-Wl,--gc-sections
76698158a01a Fix building on macOS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 53
diff changeset
8 endif
1
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
9
6
d1e5b8390cd3 Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents: 3
diff changeset
10 src/%.o : src/%.c
1
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
11 $(CC) -c $(CC_FLAGS) $< -o $@
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
12
47
7cb4ca7cf257 Use a common.c file to hold concurrent functions
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
13 msvpvf: src/main.o src/common.o
53
bc85395ff699 [Makefile] Remove unused functions
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 48
diff changeset
14 $(CC) $(CC_FLAGS) -o $@ $^ $(LD_FLAGS)
1
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
15
6
d1e5b8390cd3 Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents: 3
diff changeset
16 # GUI is windows-only, please use cross-compiler!
47
7cb4ca7cf257 Use a common.c file to hold concurrent functions
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
17 gui: src/gui.o src/common.o
53
bc85395ff699 [Makefile] Remove unused functions
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 48
diff changeset
18 $(CC) $(CC_FLAGS) -o $@ $^ $(LD_FLAGS) -mwindows
6
d1e5b8390cd3 Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents: 3
diff changeset
19
1
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
20 clean:
6
d1e5b8390cd3 Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents: 3
diff changeset
21 rm -f src/*.o *.exe msvpvf gui