-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.w32
43 lines (27 loc) · 1.51 KB
/
Makefile.w32
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
43
# TODO: fix this once I actually get access to a PC again.
# "nmake" makefile for all-maximal-sets on PC with Miscrosoft VC++
# For optimized executable:
CFLAGS = /DNDEBUG /DMICROSOFT /O2 /D_FILE_OFFSET_BITS=64
.SUFFIXES: .obj .cc
OBJS_c = data-source-iterator.cc set-properties.cc
OBJS_lexicographic_c = all-maximal-sets-lexicographic.cc main-lexicographic.cc $(OBJS_c)
OBJS_lexicographic_o = $(OBJS_lexicographic_c:.cc=.obj)
OBJS_cardinality_c = all-maximal-sets-cardinality.cc main-cardinality.cc $(OBJS_c)
OBJS_cardinality_o = $(OBJS_cardinality_c:.cc=.obj)
OBJS_satelite_c = all-maximal-sets-satelite.cc main-satelite.cc $(OBJS_c)
OBJS_satelite_o = $(OBJS_satelite_c:.cc=.obj)
OBJS_sorter_c = main-sorter.cc sorter.cc $(OBJS_c)
OBJS_sorter_o = $(OBJS_sorter_c:.cc=.obj)
all: ams-lexicographic.exe ams-cardinality.exe ams-satelite.exe ams-sorter.exe
ams-lexicographic.exe: $(OBJS_lexicographic_c) $(OBJS_lexicographic_o)
$(CC) $(LDFLAGS) $(CFLAGS) -o ams-lexicographic $(OBJS_lexicographic_o)
ams-cardinality.exe: $(OBJS_cardinality_c) $(OBJS_cardinality_o)
$(CC) $(LDFLAGS) $(CFLAGS) -o ams-cardinality $(OBJS_cardinality_o)
ams-satelite.exe: $(OBJS_satelite_c) $(OBJS_satelite_o)
$(CC) $(LDFLAGS) $(CFLAGS) -o ams-satelite $(OBJS_satelite_o)
ams-sorter.exe: $(OBJS_sorter_c) $(OBJS_sorter_o)
$(CC) $(LDFLAGS) $(CFLAGS) -o sorter $(OBJS_sorter_o)
clean:
del *.obj ams-lexicographic.exe ams-cardinality.exe ams-satelite.exe ams-sorter.exe
.cc.obj:
$(CC) $(CFLAGS) /c $<