| 1 |
greg |
1.1 |
# |
| 2 |
|
|
# SCCSid "$SunId$ LBL" |
| 3 |
|
|
# Makefile for MGF parser library |
| 4 |
|
|
# |
| 5 |
greg |
1.5 |
# Use -DNOPROTO flag to get back K&R compatibility. |
| 6 |
|
|
# Use -DBSD flag if your UNIX has a strong BSD flavor. |
| 7 |
|
|
# Use '-DMEM_PTR=char *' if your malloc return type is not 'void *'. |
| 8 |
|
|
MACH = |
| 9 |
greg |
1.4 |
OPT = -O |
| 10 |
greg |
1.1 |
CFLAGS = $(MACH) $(OPT) |
| 11 |
|
|
CC = cc |
| 12 |
|
|
|
| 13 |
|
|
OBJS = parser.o context.o xf.o object.o lookup.o badarg.o words.o fvect.o |
| 14 |
|
|
|
| 15 |
greg |
1.3 |
mgfilt: libmgf.a mgfilt.o |
| 16 |
|
|
$(CC) $(CFLAGS) -o mgfilt mgfilt.o libmgf.a -lm |
| 17 |
|
|
|
| 18 |
greg |
1.1 |
libmgf.a: $(OBJS) |
| 19 |
|
|
ar rc libmgf.a $(OBJS) |
| 20 |
|
|
-ranlib libmgf.a |
| 21 |
|
|
|
| 22 |
|
|
clean: |
| 23 |
greg |
1.2 |
set nonomatch ; rm -f *.o |
| 24 |
greg |
1.1 |
|
| 25 |
|
|
parser.o context.o xf.o object.o fvect.o: parser.h |
| 26 |
|
|
|
| 27 |
|
|
parser.o context.o lookup.o: lookup.h |
| 28 |
|
|
|
| 29 |
|
|
parser.o: messages.h |
| 30 |
|
|
|
| 31 |
|
|
mgfilt.o: parser.h |