|
|
1.1 root 1: # conio/Makefile
2:
3: #########################################################################
4: # Makefile for Synchronet Message Base Library (SMBLIB) #
5: # For use with Borland C++ Builder 5+ or Borland C++ 5.5 for Win32 #
6: # @format.tab-size 4 #
7: # #
8: # usage: make #
9: #########################################################################
10:
11: # $Id: Makefile,v 1.20 2006/05/30 04:06:39 deuce Exp $
12:
13: # To build a DLL, use "make [OPTIONS] DLLIBS=1 dl-mtlib"
14: # You *MUST* do a clean between a static and dynamic lib on Win32!
15:
16: # Macros
17: #DEBUG = 1 # Comment out for release (non-debug) version
18:
19: SRC_ROOT = ..
20: # Cross platform/compiler definitions
21: !include ..\build\Common.bmake # defines clean and output directory rules
22:
23: !ifdef USE_SDL
24: OBJS = $(OBJS) $(MTOBJODIR)$(DIRSEP)sdl_con$(OFILE)
25: !endif
26:
27: #The following is necessary only when DLL-exporting wrapper functions
28: !ifdef DLLIBS
29: CFLAGS = $(CFLAGS) -DCIOLIB_EXPORTS=1 -DWRAPPER_IMPORTS=1
30: LDFLAGS = $(LDFLAGS) -L$(LIBODIR)
31: !endif
32:
33: CFLAGS = -w-par -w-csu $(CFLAGS) $(XPDEV-MT_CFLAGS) $(CIOLIB-MT_CFLAGS) $(MT_CFLAGS) -I$(CIOLIB_SRC)
34: OBJS = $(OBJS) $(MTOBJODIR)$(DIRSEP)win32cio$(OFILE)
35:
36: mtlib: $(LIBODIR)$(DIRSEP)ciolib.res
37:
38: dl-mtlib: $(LIBODIR)$(DIRSEP)ciolib.res
39:
40: $(LIBODIR)$(DIRSEP)ciolib.res: ciolib.rc syncicon64.ico
41: @echo Creating $< ...
42: $(QUIET)brcc32 -fo$@ -32 ciolib.rc
43:
44: $(CIOLIB-MT_BUILD): $(OBJS)
45: @echo Creating $< ...
46: -$(QUIET)$(DELETE) $@
47: &$(QUIET)tlib $@ +$**
48:
49: $(CIOLIB-MT_SHLIB_BUILD): $(OBJS)
50: @echo Linking $@
51: $(QUIET)$(MKSHLIB) $(MT_LDFLAGS) $(XPDEV-MT_LDFLAGS) -lGi -e$@ $(LDFLAGS) $(SHLIBOPTS) $(XPDEV-MT_LIBS) @&&|
52: $**
53: cw32mt.lib
54: |
55:
56: test:
57: $(QUIET)$(CC) $(CFLAGS) $(MT_LDFLAGS) $(CIOLIB-MT_LDFLAGS) $(XPDEV-MT_LDFLAGS) keytest.c $(LDFLAGS) $(CIOLIB-MT_LIBS) $(XPDEV-MT_LIBS)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.