|
|
1.1 root 1: ###############################################
2: # Makefile for Synchronet BBS Install Program #
3: # For use with Borland C++ for DOS or OS/2 #
4: ###############################################
5:
6: # Macros
7: CC = bcc
8: LD = tlink
9: !ifdef __OS2__
10: OS = OS2
11: INCLUDE = c:\bcos2\include;..;..\..\uifc
12: LIB = c:\bcos2\lib
13: CFLAGS = -d -C -I$(INCLUDE) -w-pro
14: LFLAGS = -c
15: !else
16: OS = DOS
17: INCLUDE = \bc45\include;..;..\..\uifc
18: LIB = \bc45\lib
19: MODEL = l
20: CFLAGS = -d -C -m$(MODEL) -I$(INCLUDE) -w-pro
21: LFLAGS = -n -c
22: OBJS = ..\..\mswait\$(OS)\mswait.obj
23: !endif
24: MAIN = $(OS)\install.exe
25: OBJS = $(OBJS) $(OS)\uifc.obj $(OS)\install.obj
26: HEADERS = ..\..\uifc\uifc.h
27:
28: # Implicit C Compile Rule
29: {.}.c.obj:
30: @echo Compiling (I) $< to $@ ...
31: $(CC) $(CFLAGS) -n$(OS) -c $<
32:
33: # Main EXE Link Rule
34: $(MAIN): $(OBJS)
35: @echo Linking $< ...
36: !ifdef __OS2__
37: $(LD) $(LFLAGS) @&&+
38: $(LIB)\c02.obj $(OBJS)
39: +, $*, $*, $(LIB)\os2.lib $(LIB)\c2.lib
40: !else
41: $(LD) $(LFLAGS) @&&+
42: $(LIB)\c0$(MODEL).obj $(OBJS)
43: +, $*, $*, $(LIB)\c$(MODEL).lib $(LIB)\math$(MODEL).lib\
44: $(LIB)\emu.lib
45: !endif
46:
47: # Local Menu Routines
48: $(OS)\uifc.obj: ..\..\uifc\uifc.c ..\..\uifc\uifc.h
49: @echo Compiling ..\..\uifc\$&.c to $< ...
50: $(CC) $(CFLAGS) -c -n$(OS) ..\..\uifc\$&.c
51:
52: install.obj: $(HEADERS)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.