]> git.saurik.com Git - wxWidgets.git/blob - utils/Install/sfxace/makefile.b32
attempts to fix recursive mutex initialized detection under RedHat 7.1 (new glibc)
[wxWidgets.git] / utils / Install / sfxace / makefile.b32
1 #
2 # File: makefile.b32
3 # Author: Julian Smart
4 # Created: 1999
5 # Updated:
6 # Copyright:
7 #
8 # Makefile : Builds sample for 32-bit BC++
9
10 WXDIR = $(WXWIN)
11
12 EXTRACPPFLAGS = /I"..\incace" /I".."
13 TARGET=sfx
14 OBJECTS = wxmain.obj instsup.obj install.obj globals.obj uac_comm.obj uac_crc.obj uac_crt.obj uac_dcpr.obj uac_sys.obj unace.obj
15
16 WXDIR = $(WXWIN)
17 !include $(WXDIR)\src\makeb32.env
18
19 LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib jpeg xpm tiff odbc32
20
21 # Note: you may need to remove some libraries for earlier versions of BC++, as below
22 #LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib xpm tiff
23
24 !if "$(FINAL)" == "0"
25 #LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
26 LINKFLAGS=/v /c /aa -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
27 OPT = -Od
28 DEBUG_FLAGS= -v
29 !else
30 #LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
31 LINKFLAGS=/aa -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
32 OPT = -O2
33 DEBUG_FLAGS =
34 !endif
35
36 CPPFLAGS=$(DEBUG_FLAGS) $(EXTRACPPFLAGS) $(OPT) @$(CFG)
37
38 all: $(TARGET).exe $(EXTRATARGETS)
39
40 $(TARGET).exe: $(OBJECTS) $(TARGET).res
41 $(LINK) $(LINKFLAGS) @&&!
42 c0w32.obj $(OBJECTS)
43 $(TARGET)
44 nul
45 $(LIBS)
46
47 $(TARGET).res
48 !
49
50 .$(SRCSUFF).obj:
51 bcc32 $(CPPFLAGS) -c {$< }
52
53 install.obj: ..\install.c
54 bcc32 $(CPPFLAGS) -P- -c ..\install.c
55
56 wxmain.obj: ..\wxmain.cpp
57 bcc32 $(CPPFLAGS) -P- -c ..\wxmain.cpp
58
59 instsup.obj: ..\instsup.cpp
60 bcc32 $(CPPFLAGS) -P- -c ..\instsup.cpp
61
62 .c.obj:
63 bcc32 $(CPPFLAGS) -P- -c {$< }
64
65 $(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
66 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include /i$(WXDIR)\contrib\include $(TARGET)
67
68 clean:
69 -erase *.obj
70 -erase *.exe
71 -erase *.res
72 -erase *.map
73 -erase *.rws
74 -erase *.tds
75 -erase *.il?
76