|
|
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: # You must also copy the file \WATCOM\SRC\STARTUP\WILDARGV.C into the # ! 10: # current directory. # ! 11: ######################################################################### ! 12: ! 13: # Macros ! 14: ! 15: !ifndef OS ! 16: OS = DOS ! 17: !endif ! 18: ! 19: !ifeq OS DOS ! 20: CC = *wcc -ml ! 21: !else ! 22: CC = *wcc386 ! 23: !endif ! 24: ! 25: LD = *wlink ! 26: CFLAGS = -I=\watcom\h -bt=$(OS) -fo=$(OS)\ -DLZH_DYNAMIC_BUF ! 27: MAIN = $(OS)\smbutil.exe ! 28: OBJS = $(OS)\smbutil.obj $(OS)\smblib.obj $(OS)\smbvars.obj $(OS)\lzh.obj & ! 29: $(OS)\wildargv.obj ! 30: HEADERS = smbutil.h smblib.h smbdefs.h crc32.h lzh.h ! 31: ! 32: !ifeq OS DOS ! 33: SYSTEM = DOS ! 34: !endif ! 35: !ifeq OS OS2 ! 36: SYSTEM = OS2V2 ! 37: !endif ! 38: !ifeq OS DOSX ! 39: SYSTEM = DOS4G ! 40: !endif ! 41: ! 42: LFLAGS = system $(SYSTEM) ! 43: ! 44: ! 45: # Implicit C Compile Rule ! 46: .obj: $(OS) ! 47: .c.obj: ! 48: @echo Compiling (I) $< to $@ ... ! 49: $(CC) $(CFLAGS) $< ! 50: ! 51: # Main EXE Link Rule ! 52: $(MAIN): $(OBJS) ! 53: @echo Linking $< ... ! 54: $(LD) $(LFLAGS) file { $(OBJS) } ! 55: ! 56: # All .obj modules ! 57: $(OS)\smbutil.obj:: $(HEADERS) ! 58: $(OS)\smbvars.obj:: $(HEADERS) ! 59: $(OS)\smblib.obj:: $(HEADERS) ! 60: $(OS)\lzh.obj:: $(HEADERS)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.