home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
446.lha
/
parseargs
/
Makefile
< prev
next >
Wrap
Makefile
|
1990-12-05
|
2KB
|
93 lines
# $Header: Makefile,v 2.1 89/12/30 20:59:01 eric Exp $
TARGET= /usr
LIBDIR= /lib
INCDIR= ${TARGET}/include
# Xenix
# INCLUDES= -I.
# MODEL= -Ms
# MODELNAME= S
# STYLE= unix
# O= -O
# OPTIONS=
# RANLIB= ranlib
# STRTOL= strtol.o
# Unix
INCLUDES= -I.
MODEL=
MODELNAME=
STYLE= unix
O= -O
OPTIONS= -g
RANLIB= :
STRTOL=
CFLAGS= ${MODEL} ${INCLUDES} $O ${OPTIONS}
OFILES= argtype.o \
arglist.o \
fp_argtype.o \
${STYLE}_args.o \
syserr.o \
${STRTOL}
HFILES= parseargs.h \
useful.h
CFILES= argtype.c \
arglist.c \
fp_argtype.c \
amiga_args.c \
unix_args.c \
syserr.c \
stest.c
MANFILES= parseargs.3
XXFILES= README \
README.PDS \
Makefile
OBJS= ${OFILES}
SRCFILES= ${XXFILES} ${HFILES} ${CFILES} ${MANFILES}
LIBARGS= ${MODELNAME}lib${STYLE}_args.a
LIBFILE= ${MODELNAME}libparse.a
LOCLIBS= ${LIBARGS}
SYSLIBS= -lm
LIBS= ${LOCLIBS} ${SYSLIBS}
SHAR= shar
${STYLE}_test: stest.o ${LOCLIBS}
${CC} ${CFLAGS} -o ${STYLE}_test stest.o ${LIBS}
${STYLE}_args.o: parseargs.h
${LIBARGS}: ${OBJS}
ar rvu $@ ${OBJS}
${RANLIB} $@
install: ${INCDIR}/parseargs.h ${LIBDIR}/${LIBFILE}
${INCDIR}/parseargs.h: parseargs.h
(cd ${INCDIR}; rm -f ${HFILES})
cp ${HFILES} ${INCDIR}
${LIBDIR}/${LIBFILE}: ${LIBARGS}
rm -f ${LIBDIR}/${LIBFILE}
cp ${LIBARGS} ${LIBDIR}/${LIBFILE}
${RANLIB} ${LIBDIR}/${LIBFILE}
shar: parseargs.shar
parseargs.shar: ${SRCFILES}
rm -f parseargs.shar
${SHAR} ${SRCFILES} > parseargs.shar
clean:
rm -f ${OFILES} ${LIBARGS} ${STYLE}_test tags stest.o
tags: ${CFILES} ${HFILES}
ctags ${CFILES} ${HFILES}