annotate Makefile @ 77:05d48515b2f5

Added tag v1.3 for changeset 79a35af2cb56
author Paper <mrpapersonic@gmail.com>
date Sun, 01 Oct 2023 03:01:45 -0400
parents 207684d44b54
children 8f90d5addda9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
64
83b8fdb45d5e makefile: CC_FLAGS->CFLAGS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 55
diff changeset
1 CFLAGS=-Wall -O2 -fstack-protector -fdata-sections -ffunction-sections
83b8fdb45d5e makefile: CC_FLAGS->CFLAGS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 55
diff changeset
2 LDFLAGS=
54
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...
64
83b8fdb45d5e makefile: CC_FLAGS->CFLAGS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 55
diff changeset
5 LDFLAGS+=-Wl,-dead_strip
54
76698158a01a Fix building on macOS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 53
diff changeset
6 else
64
83b8fdb45d5e makefile: CC_FLAGS->CFLAGS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 55
diff changeset
7 LDFLAGS+=-Wl,--gc-sections
54
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
66
c8b91b8c2a64 prev. commit part 2
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 64
diff changeset
11 $(CC) -c $(CFLAGS) $< -o $@
1
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
64
83b8fdb45d5e makefile: CC_FLAGS->CFLAGS
Paper <37962225+mrpapersonic@users.noreply.github.com>
parents: 55
diff changeset
14 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
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
68
207684d44b54 gui.c: Add drag and drop support
Paper <mrpapersonic@gmail.com>
parents: 66
diff changeset
18 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -mwindows -lshlwapi
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