-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.vc
57 lines (37 loc) · 1.43 KB
/
makefile.vc
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
44
45
46
47
48
49
50
51
52
53
54
55
56
# distributed.net Win32 Log Visualizer makefile (MS Visual C++ for Win32 x86)
# see http://www.distributed.net/
EXENAME = logvis.exe
OUTPUTPATH = output
LOGVIS = .
# define variable to existence to enable symbolic information.
#DEBUG=1
# --------------------------------------------
OPTS_MSVC = -nologo -W3 -Ox -D__WIN32__ -MT -DHAVE_SNPRINTF -GR- -GX- -GA -GF
OPTS_LINK = /incremental:no
GUI_LIBS = kernel32.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib comctl32.lib shell32.lib uuid.lib
# --------------------------------------------
!ifdef DEBUG
OPTS_MSVC = -Zi $(OPTS_MSVC)
OPTS_LINK = $(OPTS_LINK) /debug /pdb:none /pdbtype:consolidate
!else
OPTS_MSVC = $(OPTS_MSVC) /DNDEBUG
OPTS_LINK = $(OPTS_LINK) /release
!endif
# --------------------------------------------
GUI_OBJS = \
$(OUTPUTPATH)/guiapp.obj \
$(OUTPUTPATH)/guigraph.obj \
$(OUTPUTPATH)/guiwind.obj \
$(OUTPUTPATH)/sliderrange.obj \
$(OUTPUTPATH)/guiconfig.obj
GUI_RES = $(OUTPUTPATH)/guiwin.res
# --------------------------------------------
{$(LOGVIS)}.rc{$(OUTPUTPATH)}.res:
rc -d_Windows -d_M_IX86 -fo$@ $(**:/=\)
{$(LOGVIS)}.cpp{$(OUTPUTPATH)}.obj:
cl -c $(OPTS_MSVC) -Fo$@ $**
# --------------------------------------------
# Actual target
$(EXENAME): $(GUI_OBJS) $(GUI_RES)
link $(OPTS_LINK) /OUT:$(EXENAME) $(GUI_LIBS) $**
# --------------------------------------------