File:  [Synchronet] / sbbs / sbbs2 / smb / 121a / smbutil.wat
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:38:53 2018 UTC (8 years, 3 months ago) by root
Branches: digitaldynamics, MAIN
CVS tags: v3_00c, HEAD
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)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.