File: makefile.vc

package info (click to toggle)
lft 3.93-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,492 kB
  • sloc: ansic: 11,811; sh: 2,990; makefile: 62
file content (153 lines) | stat: -rw-r--r-- 3,794 bytes parent folder | download | duplicates (4)
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# =========================================================================
#     This makefile was generated by
#     Bakefile 0.2.2 (http://bakefile.sourceforge.net)
#     Do not modify, all changes will be overwritten!
# =========================================================================



# -------------------------------------------------------------------------
# These are configurable options:
# -------------------------------------------------------------------------

# C compiler 
CC = cl

# Standard flags for CC 
CFLAGS = 

# Standard preprocessor flags (common for CC and CXX) 
CPPFLAGS = 

# Standard linker flags 
LDFLAGS = 

# Set to 1 to build debug version [0,1]
#   0 - Release
#   1 - Debug
DEBUG = 0



# -------------------------------------------------------------------------
# Do not modify the rest of this file!
# -------------------------------------------------------------------------

### Variables: ###

LFT_CFLAGS = /MD$(____DEBUG_3) /DWIN32 $(____DEBUG) $(____DEBUG_0) \
	$(____DEBUG_1) $(______DEBUG) /Fdlft.pdb /w $(CPPFLAGS) $(CFLAGS)
LFT_OBJECTS =  \
	lft_lft.obj \
	lft_lft_btcptrace.obj \
	lft_lft_icmptrace.obj \
	lft_lft_ifname.obj \
	lft_lft_lib.obj \
	lft_whois.obj \
	lft_wingetopt.obj \
	lft_wingettimeofday.obj \
	lft_winlft_ifname.obj
WHOB_CFLAGS = /MD$(____DEBUG_3) /DWIN32 $(____DEBUG) $(____DEBUG_0) \
	$(____DEBUG_1) $(______DEBUG) /Fdwhob.pdb /DSTANDALONE $(CPPFLAGS) $(CFLAGS)
WHOB_OBJECTS =  \
	whob_whois.obj \
	whob_wingetopt.obj

### Conditionally set variables: ###

!if "$(DEBUG)" == "0"
____DEBUG = /DNDEBUG
!endif
!if "$(DEBUG)" == "1"
____DEBUG = 
!endif
!if "$(DEBUG)" == "0"
____DEBUG_0 = /O2
!endif
!if "$(DEBUG)" == "1"
____DEBUG_0 = /Od
!endif
!if "$(DEBUG)" == "0"
____DEBUG_1 = 
!endif
!if "$(DEBUG)" == "1"
____DEBUG_1 = /Zi
!endif
!if "$(DEBUG)" == "0"
____DEBUG_2 = 
!endif
!if "$(DEBUG)" == "1"
____DEBUG_2 = /DEBUG
!endif
!if "$(DEBUG)" == "0"
______DEBUG = 
!endif
!if "$(DEBUG)" == "1"
______DEBUG = /D_DEBUG
!endif
!if "$(DEBUG)" == "0"
____DEBUG_3 = 
!endif
!if "$(DEBUG)" == "1"
____DEBUG_3 = d
!endif


### Targets: ###

all: lft.exe whob.exe

clean: 
	-if exist .\*.obj del .\*.obj
	-if exist .\*.res del .\*.res
	-if exist .\*.pch del .\*.pch
	-if exist lft.exe del lft.exe
	-if exist lft.ilk del lft.ilk
	-if exist lft.pdb del lft.pdb
	-if exist whob.exe del whob.exe
	-if exist whob.ilk del whob.ilk
	-if exist whob.pdb del whob.pdb

lft.exe: $(LFT_OBJECTS)
	link /NOLOGO /OUT:$@ $(LDFLAGS) $(____DEBUG_2) @<<
	$(LFT_OBJECTS)  ws2_32.lib Iphlpapi.lib imm32.lib winmm.lib advapi32.lib
<<

whob.exe: $(WHOB_OBJECTS)
	link /NOLOGO /OUT:$@ $(LDFLAGS) $(____DEBUG_2) @<<
	$(WHOB_OBJECTS)  ws2_32.lib
<<

lft_lft.obj: .\lft.c
	$(CC) /c /nologo /TC /Fo$@ $(LFT_CFLAGS) $**

lft_lft_btcptrace.obj: .\lft_btcptrace.c
	$(CC) /c /nologo /TC /Fo$@ $(LFT_CFLAGS) $**

lft_lft_icmptrace.obj: .\lft_icmptrace.c
	$(CC) /c /nologo /TC /Fo$@ $(LFT_CFLAGS) $**

lft_lft_ifname.obj: .\lft_ifname.c
	$(CC) /c /nologo /TC /Fo$@ $(LFT_CFLAGS) $**

lft_lft_lib.obj: .\lft_lib.c
	$(CC) /c /nologo /TC /Fo$@ $(LFT_CFLAGS) $**

lft_whois.obj: .\whois.c
	$(CC) /c /nologo /TC /Fo$@ $(LFT_CFLAGS) $**

lft_wingetopt.obj: .\include\win32\wingetopt.c
	$(CC) /c /nologo /TC /Fo$@ $(LFT_CFLAGS) $**

lft_wingettimeofday.obj: .\include\win32\wingettimeofday.c
	$(CC) /c /nologo /TC /Fo$@ $(LFT_CFLAGS) $**

lft_winlft_ifname.obj: .\include\win32\winlft_ifname.c
	$(CC) /c /nologo /TC /Fo$@ $(LFT_CFLAGS) $**

whob_whois.obj: .\whois.c
	$(CC) /c /nologo /TC /Fo$@ $(WHOB_CFLAGS) $**

whob_wingetopt.obj: .\include\win32\wingetopt.c
	$(CC) /c /nologo /TC /Fo$@ $(WHOB_CFLAGS) $**