|
|
3.00c Win32
#########################################################################
# Makefile for SMBUTIL #
# For use with Watcom C #
# Tabstop=8 #
# #
# To use this makefile, you must create the following sub-directories: #
# DOS, OS2, and DOSX. #
# #
# You must also copy the file \WATCOM\SRC\STARTUP\WILDARGV.C into the #
# current directory. #
#########################################################################
# Macros
!ifndef OS
OS = DOS
!endif
!ifeq OS DOS
CC = *wcc -ml
!else
CC = *wcc386
!endif
LD = *wlink
CFLAGS = -I=\watcom\h -bt=$(OS) -fo=$(OS)\ -DLZH_DYNAMIC_BUF
MAIN = $(OS)\smbutil.exe
OBJS = $(OS)\smbutil.obj $(OS)\smblib.obj $(OS)\smbvars.obj $(OS)\lzh.obj &
$(OS)\wildargv.obj
HEADERS = smbutil.h smblib.h smbdefs.h crc32.h lzh.h
!ifeq OS DOS
SYSTEM = DOS
!endif
!ifeq OS OS2
SYSTEM = OS2V2
!endif
!ifeq OS DOSX
SYSTEM = DOS4G
!endif
LFLAGS = system $(SYSTEM)
# Implicit C Compile Rule
.obj: $(OS)
.c.obj:
@echo Compiling (I) $< to $@ ...
$(CC) $(CFLAGS) $<
# Main EXE Link Rule
$(MAIN): $(OBJS)
@echo Linking $< ...
$(LD) $(LFLAGS) file { $(OBJS) }
# All .obj modules
$(OS)\smbutil.obj:: $(HEADERS)
$(OS)\smbvars.obj:: $(HEADERS)
$(OS)\smblib.obj:: $(HEADERS)
$(OS)\lzh.obj:: $(HEADERS)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.