home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
archives
/
utils.tar.gz
/
utils.tar
/
textps.os2
< prev
next >
Wrap
Text File
|
1994-01-16
|
2KB
|
86 lines
# Makefile for "textps" 10 Jan 1993
#
# - for GNU gcc (emx kit) under OS/2 2.0 (32-bit)
# - for Microsoft C 6.00 under OS/2 or MSDOS (16-bit)
# To use, enter "make -f textps.os2" (this makefile depends on its
# name being "textps.os2").
#
# Tested with dmake 3.8 and GNU make 3.68 under OS/2
default:
@echo "Enter $(MAKE) -f textps.os2 target "
@echo " where 'target' is chosen from "
@echo " msc OS/2 exe [Microsoft C 6.00a] "
@echo " mscbnd OS/2 and DOS exe [Microsoft C 6.00a] "
@echo " mscdos DOS exe [Microsoft C 6.00a] "
@echo " emx OS/2 32-bit exe [EMX/gcc; uses emxlibc.dll] "
@echo " emxbnd OS/2 and DOS 32-bit exe [EMX/gcc] "
emx:
$(MAKE) -f textps.os2 all \
CC="gcc -Zomf -Zmtd" O=".obj" \
CFLAGS="-O -DOS2" \
LDFLAGS="-s -Zlinker /PMTYPE:VIO"
emxbnd:
$(MAKE) -f textps.os2 all \
CC="gcc" O=".o" \
CFLAGS="-O -DOS2" \
LDFLAGS="-s"
msc:
$(MAKE) -f textps.os2 all \
CC="cl -AS" O=".obj" \
CFLAGS="-DOS2" \
LDFLAGS="-Lp -F 800 -link /PMTYPE:VIO"
mscbnd:
$(MAKE) -f textps.os2 all \
CC="cl -AS" O=".obj" \
CFLAGS="-DOS2" \
LDFLAGS="-Lp -Fb -F 800 -link /PMTYPE:VIO"
mscdos:
$(MAKE) -f textps.os2 all \
CC="cl -AS" O=".obj" \
CFLAGS="" \
LDFLAGS="-Lr -F 800"
# Defaults
CC = cl -AS
O = .obj
CFLAGS = -DOS2
LDFLAGS = -Lp -Fb -F 800 -link /PMTYPE:VIO
# Where to install the executables.
bindir = /bin
# Where to put the manual pages.
mandir = /etc/man/manl
# Extension (not including `.') for the installed manual page filenames.
manext = l
.SUFFIXES:
.SUFFIXES: .obj .o .c
.c$O :
$(CC) $(CFLAGS) -c $<
OBJS = textps$O
all : textps.exe
textps.exe : $(OBJS)
$(CC) -o $@ $(OBJS) $(LDFLAGS)
install:
cp textps.exe $(bindir)
cp textps.l $(mandir)/textps.$(manext)
clean:
rm -f *.obj *.o core textps.exe
# dmake ignores .SUFFIXES, and may try to make textps.c from textps.l
%.c : %.l ;