|
|
1.1 root 1: #########################################################################
2: # Makefile for SMBUTIL #
3: # For use with Watcom C #
4: # Tabstop=8 #
5: # #
6: # To use this makefile, you must create the following sub-directories: #
7: # DOS, OS2, and DOSX. #
8: # #
9: # *** IMPORTANT NOTE ***
10: # You must also copy the file \WATCOM\SRC\STARTUP\WILDARGV.C into the #
11: # current directory. #
12: #########################################################################
13:
14: # Macros
15:
16: !ifndef OS
17: OS = DOS
18: !endif
19:
20: !ifeq OS DOS
21: CC = *wcc -ml
22: !else
23: CC = *wcc386
24: !endif
25:
26: LD = *wlink
27: MAIN = $(OS)\smbutil.exe
28: OBJS = $(OS)\smbutil.obj $(OS)\smblib.obj $(OS)\lzh.obj $(OS)\wildargv.obj
29: HEADERS = smbutil.h smblib.h smbdefs.h crc32.h lzh.h
30:
31: !ifeq OS DOS
32: CFLAGS = -I=\watcom\h;.. -bt=$(OS) -fo=$(OS)\ -DSMB_GETMSGTXT
33: !else
34: CFLAGS = -I=\watcom\h;.. -bt=$(OS) -fo=$(OS)\ -DSMB_GETMSGTXT -DLZH_DYNAMIC_BUF
35: !endif
36:
37: !ifeq OS NT
38: SYSTEM = NT
39: !endif
40: !ifeq OS DOS
41: SYSTEM = DOS
42: !endif
43: !ifeq OS OS2
44: SYSTEM = OS2V2
45: !endif
46: !ifeq OS DOS4G
47: SYSTEM = DOS4G
48: !endif
49:
50: LFLAGS = system $(SYSTEM)
51:
52:
53: # Implicit C Compile Rule
54: .obj: $(OS)
55: .c.obj:
56: @echo Compiling (I) $< to $@ ...
57: $(CC) $(CFLAGS) $<
58:
59: # Main EXE Link Rule
60: $(MAIN): $(OBJS)
61: @echo Linking $< ...
62: $(LD) $(LFLAGS) file { $(OBJS) }
63:
64: # All .obj modules
65: $(OS)\smbutil.obj:: $(HEADERS)
66:
67: $(OS)\smblib.obj: ..\smblib.c ..\smblib.h ..\smbdefs.h
68: @echo Compiling $[@ to $^@ ...
69: $(CC) -DSMB_GETMSGTXT $(CFLAGS) $[@
70:
71: $(OS)\lzh.obj: ..\lzh.c ..\lzh.h
72: @echo Compiling $[@ to $^@ ...
73: $(CC) $(CFLAGS) $[@
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.