blob: 7723d52f5b4375016177d312a45e846d86681d4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
--- /usr/ports/devel/cocktail/work/cocktail-9309//./estra/m2c/Makefile Tue Feb 15 14:23:01 1994
+++ ./estra/m2c/Makefile Thu Aug 5 18:48:55 2004
@@ -1,36 +1,28 @@
-BIN = $(HOME)/bin
-LIB = $(HOME)/lib
-OPT = -O
-CC = cc
- # C library (reuse)
-REUSE = ../../reuse/m2c
+.include "../../Makefile.inc"
- # C library (common)
-COMMON = ../../common/m2c
-
- # C libraries
-CLIBS = $(COMMON)/libcommon.a $(REUSE)/libreuse.a
-
- # options for C compiler
-CFLAGS = -w -I$(COMMON) -I$(REUSE) $(OPT)
-
-M2FLAGS = -c
+ROOTDIR = ../..
+CFLAGS += -I$(COMMONINC) -I$(INCDIR)
+CLIBS += $(COMMONLIB) $(REUSELIB)
all : estra
-install: estra estra.sh $(LIB)/estra
- if test $(LIB) = $(BIN); then echo error: BIN = LIB; false; else true; fi
- sed "s;LIB;$(LIB);" < estra.sh > $(BIN)/estra
- chmod a+rx $(BIN)/estra
- install -c -s -m 755 estra $(LIB)/estra
- install -c -m 644 ErrorTab $(LIB)/estra
+install: estra estra.sh $(DESTLIB)/estra
+ if test $(DESTLIB) = $(DESTBIN); then echo error: DESTBIN = DESTLIB; false; else true; fi
+ sed "s;LIB;$(DESTLIB);" < estra.sh > $(DESTBIN)/estra
+ chmod a+rx $(DESTBIN)/estra
+ install -c -s -m 755 estra $(DESTLIB)/estra
+ install -c -m 644 ErrorTab $(DESTLIB)/estra
# installation directories
-$(LIB)/estra: $(LIB)
- sh -c "if test ! -d $(LIB)/estra; then mkdir -p $(LIB)/estra; else true; fi"
+$(DESTLIB)/estra: $(DESTLIB)
+ sh -c "if test ! -d $(DESTLIB)/estra; then mkdir -p $(DESTLIB)/estra; else true; fi"
+clean:
+ -rm -f $(STDCLEAN)
+ -rm -f *.o
+ -rm -f estra
# HEAD
@@ -232,18 +224,3 @@
CodeM2.o \
$(CLIBS)
-# TAIL
-
-clean :
- rm -f core *.o
-
-.SUFFIXES: .md .mi .h .c .o
-
-.mi.c:
- mtc2 $(M2FLAGS) $*.mi;
-
-.md.h:
- mtc2 $(M2FLAGS) $*.md;
-
-.c.o:
- $(CC) $(CFLAGS) -c $*.c
|