Mercurial > msvpvf
annotate Makefile @ 24:348a4a4beb17
Backport from master
| author | Paper <37962225+mrpapersonic@users.noreply.github.com> | 
|---|---|
| date | Thu, 07 Apr 2022 19:32:19 -0400 | 
| parents | d1e5b8390cd3 | 
| children | 7103ac60ebdc | 
| 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=clang | 
| 
 
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
 
Paper <mrpapersonic@gmail.com> 
parents: 
3 
diff
changeset
 | 
2 CC_FLAGS=-Wall -O2 | 
| 
 
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
 
Paper <mrpapersonic@gmail.com> 
parents: 
3 
diff
changeset
 | 
3 LD_FLAGS= | 
| 1 | 4 | 
| 
6
 
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
 
Paper <mrpapersonic@gmail.com> 
parents: 
3 
diff
changeset
 | 
5 src/%.o : src/%.c | 
| 1 | 6 $(CC) -c $(CC_FLAGS) $< -o $@ | 
| 7 | |
| 
6
 
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
 
Paper <mrpapersonic@gmail.com> 
parents: 
3 
diff
changeset
 | 
8 msvpvf: src/main.o | 
| 1 | 9 $(CC) -o $@ $< $(CC_FLAGS) $(LD_FLAGS) | 
| 10 | |
| 
6
 
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
 
Paper <mrpapersonic@gmail.com> 
parents: 
3 
diff
changeset
 | 
11 # GUI is windows-only, please use cross-compiler! | 
| 
 
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
 
Paper <mrpapersonic@gmail.com> 
parents: 
3 
diff
changeset
 | 
12 gui: src/gui.o | 
| 
 
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
 
Paper <mrpapersonic@gmail.com> 
parents: 
3 
diff
changeset
 | 
13 $(CC) -o $@ $< $(CC_FLAGS) $(LD_FLAGS) -mwindows | 
| 
 
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
 
Paper <mrpapersonic@gmail.com> 
parents: 
3 
diff
changeset
 | 
14 | 
| 1 | 15 clean: | 
| 
6
 
d1e5b8390cd3
Add Windows GUI version and a multitude of other changes
 
Paper <mrpapersonic@gmail.com> 
parents: 
3 
diff
changeset
 | 
16 rm -f src/*.o *.exe msvpvf gui | 
