File: Makefile.vc

package info (click to toggle)
sffview 0.5.0-7
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 488 kB
  • sloc: cpp: 1,975; makefile: 23
file content (75 lines) | stat: -rw-r--r-- 1,881 bytes parent folder | download | duplicates (5)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#
# Makefile for MS Visual C (nmake)
#
# Build command:
#  nmake /f makefile.vc 
#
# Without debug info: 
#  nmake nodebug=1 /f makefile.vc

!include <win32.mak>

WXBASE = C:\wxWidgets-2.9.4

WXLIBPATH = $(WXBASE)\lib\vc_lib

!IFDEF NODEBUG
WXCONFPATH = $(WXBASE)\lib\vc_lib\mswu
WXLIBS = /LIBPATH:$(WXLIBPATH) wxbase29u.lib wxbase29u_net.lib wxmsw29u_core.lib \
	wxmsw29u_aui.lib wxmsw29u_adv.lib wxmsw29u_ribbon.lib \
	wxmsw29u_html.lib wxbase29u_xml.lib wxpng.lib wxtiff.lib \
	wxjpeg.lib wxzlib.lib wxregexu.lib wxexpat.lib
!ELSE
WXCONFPATH = $(WXBASE)\lib\vc_lib\mswud
WXLIBS = /LIBPATH:$(WXLIBPATH) wxbase29ud.lib wxbase29ud_net.lib wxmsw29ud_core.lib \
	wxmsw29ud_aui.lib wxmsw29ud_adv.lib wxmsw29ud_ribbon.lib \
	wxmsw29ud_html.lib wxbase29ud_xml.lib wxpngd.lib wxtiffd.lib \
	wxjpegd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib
!ENDIF

INCL	= /I. /I$(WXCONFPATH) /I$(WXBASE)\include

EXE=sffview.exe

CFLAGS= /D_CRT_SECURE_NO_DEPRECATE $(cflags) $(cdebug) $(cvarsmt) 
CPPFLAGS= /EHsc /D_CRT_SECURE_NO_DEPRECATE $(INCL) $(cppflags) $(cflags) $(cdebug) $(cvarsmt)
LDFLAGS= $(ldebug) $(guilflags)
LDLIBS= $(guilibs) $(olelibs) $(WXLIBS) advapi32.lib shell32.lib comctl32.lib rpcrt4.lib

RCFLAGS = $(rcflags) /i$(WXBASE)\include

OBJ	= \
	..\codes.obj \
	..\common.obj \
	..\decoder.obj \
	..\sffapp.obj \
	..\sffdoc.obj \
	..\sfffile.obj \
	..\sffview.obj \
	sffview.res
	
# Template command for compiling .c to .obj
.c.obj:
	$(cc) $(CFLAGS) $*.c /Fo$@

# Template command for compiling .c to .obj
.cpp.obj:
	$(CPP) $(CPPFLAGS) $*.cpp /Fo$@

# Template command for compiling .rc to .res
.rc.res:
	$(RC) $(RCFLAGS) /fo$@ $*.rc 

all:	$(EXE)

$(EXE):	$(OBJ)
	$(link) $(LDFLAGS) $(LDLIBS) $(OBJ) -out:$(EXE)

clean:
	-del *.exe
	-del *.ilk
	-del *.exp
	-del *.pdb
	-del *.manifest
	-del RC*
	-del $(OBJ)