Rev | Line | |
---|
[9] | 1 | # Makefile for M4
|
---|
| 2 |
|
---|
| 3 | # -DEXTENDED #if you like to get paste & spaste macros.
|
---|
| 4 | # -DVOID #if your C compiler does NOT support void.
|
---|
| 5 | # -DGETOPT #if you STILL do not have getopt in your library.
|
---|
| 6 | # -DDUFFCP #if you do not have fast memcpy in your library.
|
---|
| 7 | #
|
---|
| 8 |
|
---|
| 9 | CFLAGS = -DEXTENDED -O -D_POSIX_SOURCE -D_MINIX
|
---|
| 10 | CC = exec cc
|
---|
| 11 |
|
---|
| 12 | OBJ = main.o eval.o serv.o look.o misc.o expr.o
|
---|
| 13 | INCL = mdef.h extr.h patchlevel.h
|
---|
| 14 |
|
---|
| 15 | all: m4
|
---|
| 16 |
|
---|
| 17 | m4: $(OBJ) $(INCL)
|
---|
| 18 | cc -i -o m4 $(OBJ)
|
---|
| 19 | install -S 4kw m4
|
---|
| 20 |
|
---|
| 21 | install: /usr/bin/m4
|
---|
| 22 |
|
---|
| 23 | /usr/bin/m4: m4
|
---|
| 24 | install -cs -o bin m4 $@
|
---|
| 25 |
|
---|
| 26 | clean:
|
---|
| 27 | rm -f *.o m4 core *bak
|
---|
Note:
See
TracBrowser
for help on using the repository browser.