Mercurial > msvpvf
comparison Makefile @ 54:76698158a01a
Fix building on macOS
| author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
|---|---|
| date | Sun, 22 May 2022 04:33:17 -0400 |
| parents | bc85395ff699 |
| children | dbed5f51d635 |
comparison
equal
deleted
inserted
replaced
| 53:bc85395ff699 | 54:76698158a01a |
|---|---|
| 1 CC_FLAGS=-Wall -O2 -fstack-protector -fdata-sections -ffunction-sections | 1 CC_FLAGS=-Wall -O2 -fstack-protector -fdata-sections -ffunction-sections |
| 2 LD_FLAGS=-Wl,--gc-sections | 2 LD_FLAGS= |
| 3 | |
| 4 ifeq ($(UNAME_S),Darwin) # macOS is the odd one... | |
| 5 LD_FLAGS+=-Wl,-dead_strip | |
| 6 else | |
| 7 LD_FLAGS+=-Wl,--gc-sections | |
| 8 endif | |
| 3 | 9 |
| 4 src/%.o : src/%.c | 10 src/%.o : src/%.c |
| 5 $(CC) -c $(CC_FLAGS) $< -o $@ | 11 $(CC) -c $(CC_FLAGS) $< -o $@ |
| 6 | 12 |
| 7 msvpvf: src/main.o src/common.o | 13 msvpvf: src/main.o src/common.o |
