view Makefile @ 53:bc85395ff699

[Makefile] Remove unused functions
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Sun, 22 May 2022 04:27:55 -0400
parents 652343b56a60
children 76698158a01a
line wrap: on
line source

CC_FLAGS=-Wall -O2 -fstack-protector -fdata-sections -ffunction-sections
LD_FLAGS=-Wl,--gc-sections

src/%.o : src/%.c
	$(CC) -c $(CC_FLAGS) $< -o $@

msvpvf: src/main.o src/common.o
	$(CC) $(CC_FLAGS) -o $@ $^  $(LD_FLAGS)

# GUI is windows-only, please use cross-compiler!
gui: src/gui.o src/common.o
	$(CC) $(CC_FLAGS) -o $@ $^ $(LD_FLAGS) -mwindows

clean:
	rm -f src/*.o *.exe msvpvf gui