-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.gcc
43 lines (29 loc) · 1.33 KB
/
Makefile.gcc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Makefile.gcc
#
# This file is part of Piskworks game.
# https://github.com/berk76/piskworks
#
# Piskworks is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version. <http://www.gnu.org/licenses/>
#
# Written by Jaroslav Beran <[email protected]>, on 24.2.2016
CC = cc
CFLAGS = -O2 -Wall -c -o $@ -D _EINSTEIN_ -D _SAVE_GAME_
all: pisk_w32 pisk_con
pisk_w32: src/main_w32.o src/pisk_lib.o src/resource.res
$(CC) -Wall -o $@ src/main_w32.o src/pisk_lib.o src/resource.res -lgdi32 -lcomctl32 -mwindows
pisk_con: src/main_con.o src/pisk_lib.o
$(CC) -Wall -o $@ src/main_con.o src/pisk_lib.o
unittest: src/unittest.o src/pisk_lib.o
$(CC) -Wall -o $@ src/unittest.o src/pisk_lib.o
mv unittest* tests
src/main_w32.o: src/main_w32.c src/pisk_lib.h src/resource.h
src/main_con.o: src/main_con.c src/pisk_lib.h src/res_con.h
src/unittest.o: src/unittest.c src/pisk_lib.h
src/pisk_lib.o: src/pisk_lib.c src/pisk_lib.h
src/resource.res: src/resource.rc src/resource.h
windres src/resource.rc -O coff -o src/resource.res
clean:
rm -f src/*.o *.exe src/*.res pisk_con src/*.gom unittest* tests/unittest*