home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
LMUTIL.ZIP
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1991-03-19
|
1KB
|
87 lines
#
#** Template makefile for <X> application
.SUFFIXES:
.SUFFIXES: .c .asm .obj .lst .def .lnk .lrf .exe .com
# Definitions for assembler
ASM=masm
AFLAGS=-Mx -t
AINC=
# Definitions for linker
LINK=link
LFLAGS= /MAP
LIBS=netapps.lib doslan.lib lan.lib
# Definitions for C compiler
#
CC=cl
CADIT=
CFLAGS= -Zi -AL -Lr -W3 -Od -Zep -nologo $(CADIT)
CINC=
# Rules for generating object and linker response and definition files
.asm.obj:
$(ASM) $(AFLAGS) $(AINC) -p $*.asm;
.asm.lst:
$(ASM) -l -n $(AFLAGS) $(AINC) $*.asm;
.c.obj:
$(CC) $(CFLAGS) -Fo$*.obj -dos $(CINC) -c $*.c
.c.exe:
$(CC) $(CFLAGS) -Fo$*.obj -dos $(CINC) $*.c -link $(LIBS)
.c.lst:
$(CC) $(CFLAGS) -Fc$*.cod -Fo$*.obj -dos $(CINC) -c $*.c
.lnk.lrf:
tresp $*.lnk $*.lrf
.exe.com:
reloc $*.exe $*.com
APPLIB=netapps.lib
APPMODS=getsrv.obj
#
# Definitions for Librarian
LIB=lib
LIBFLAGS=/NOLOGO
#
# Delete Command
DEL=del
# List of object files required
OBJ=
# Rules for building executable go here
all: username.exe wksta.exe machname.exe ismember.exe rights.exe $(APPMODS)
username.exe: username.c $(APPMODS)
wksta.exe: wksta.c
machname.exe: machname.c
ismember.exe: ismember.c $(APPMODS)
rights.exe: rights.c $(APPMODS)
getsrv.obj: getsrv.c getsrv.h
$(CC) $(CFLAGS) -Fo$*.obj -dos $(CINC) -c $*.c
$(LIB) $(LIBFLAGS) $(APPLIB) -+ $*.obj;
$(DEL) *.bak