Mercurial > msvpvf
annotate Makefile @ 58:fcd4b9fe957b
[gui.c]: show version and type in a box
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Thu, 21 Jul 2022 00:46:18 -0400 |
parents | dbed5f51d635 |
children | 83b8fdb45d5e |
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 | 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 | 11 $(CC) -c $(CC_FLAGS) $< -o $@ |
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 | 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 | 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 |