annotate Makefile @ 52:cf9a14755472

Use Win32 libraries to copy files
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Sun, 22 May 2022 04:20:11 -0400
parents 652343b56a60
children bc85395ff699
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
d1e5b8390cd3 Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents: 3
diff changeset
1 CC_FLAGS=-Wall -O2
d1e5b8390cd3 Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents: 3
diff changeset
2 LD_FLAGS=
1
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
3
6
d1e5b8390cd3 Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents: 3
diff changeset
4 src/%.o : src/%.c
1
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
5 $(CC) -c $(CC_FLAGS) $< -o $@
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
6
47
7cb4ca7cf257 Use a common.c file to hold concurrent functions
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
7 msvpvf: src/main.o src/common.o
7cb4ca7cf257 Use a common.c file to hold concurrent functions
Paper <mrpapersonic@gmail.com>
parents: 27
diff changeset
8 $(CC) -o $@ $^ $(CC_FLAGS) $(LD_FLAGS)
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 # 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
11 gui: src/gui.o src/common.o
48
652343b56a60 Remove the need for <inttypes.h> and <stdbool.h>
Paper <mrpapersonic@gmail.com>
parents: 47
diff changeset
12 $(CC) -o $@ $^ $(CC_FLAGS) $(LD_FLAGS) -mwindows -fstack-protector
6
d1e5b8390cd3 Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents: 3
diff changeset
13
1
528b95e1e24f Add source and makefile
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
14 clean:
6
d1e5b8390cd3 Add Windows GUI version and a multitude of other changes
Paper <mrpapersonic@gmail.com>
parents: 3
diff changeset
15 rm -f src/*.o *.exe msvpvf gui