-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile.win32
52 lines (34 loc) · 1.22 KB
/
makefile.win32
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
!IF "$(CFG)" == ""
CFG=debug
!ENDIF
PCLLIB=pcl.lib
PCL_SRCDIR=.\pcl
INCL_DIRS=/I"$(PCL_SRCDIR)" /I".\include" /I"."
CFLAGS=/D _WIN32 /D CO_MULTI_THREAD /D HAVE_WINCONFIG_H /D _CRT_SECURE_NO_DEPRECATE \
/D _CRT_NONSTDC_NO_DEPRECATE $(INCL_DIRS)
!IF "$(CFG)" == "release"
OUTDIR=.\release
CPP_FLAGS=/nologo $(CFLAGS) /Zp1 /MT /W3 /O2 /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /Fo"$(OUTDIR)\\" /FD /c
!ELSEIF "$(CFG)" == "debug"
OUTDIR=.\debug
CPP_FLAGS=/nologo $(CFLAGS) /Zp1 /MTd /Zi /W3 /Gm /Od /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fo"$(OUTDIR)\\" /FD /c
!ENDIF
CPP=cl.exe
LIB32=lib.exe
LIB32_FLAGS=/nologo
LINK32=link.exe
LINK32_FLAGS="$(OUTDIR)\$(PCLLIB)" kernel32.lib user32.lib /nologo /subsystem:console /incremental:no
PCLLIB_OBJS= \
"$(OUTDIR)\pcl.obj" \
"$(OUTDIR)\pcl_version.obj" \
"$(OUTDIR)\pcl_private.obj" \
ALL : "$(OUTDIR)\$(PCLLIB)"
CLEAN :
-@erase "$(OUTDIR)\$(PCLLIB)" $(PCLLIB_OBJS)
-@erase *.pdb *.idb *.pch
"$(OUTDIR)" :
if not exist "$(OUTDIR)\$(NULL)" mkdir "$(OUTDIR)"
{$(PCL_SRCDIR)}.c{$(OUTDIR)}.obj :
$(CPP) $(CPP_FLAGS) $<
"$(OUTDIR)\$(PCLLIB)" : "$(OUTDIR)" $(PCLLIB_OBJS)
$(LIB32) $(LIB32_FLAGS) /out:"$(OUTDIR)\$(PCLLIB)" $(PCLLIB_OBJS)