summaryrefslogtreecommitdiff
path: root/graphics/tcm/patches/patch-av
blob: cd7453f63b38b4b449bb46161918e3f5c75e5c39 (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
$NetBSD: patch-av,v 1.2 2001/05/10 23:35:28 jtb Exp $

--- sd/fv/Makefile.orig	Wed Dec 20 13:33:20 2000
+++ sd/fv/Makefile
@@ -51,50 +51,42 @@
 FVOBJECTS = $(DCFOBJECTS) $(SNOBJECTS)
 
 tcmfv:  $(FVOBJECTS) tcmfv.o
-	$(PURIFY) $(CC) $(CFLAGS) $(FVOBJECTS) \
-	-ldiagram -leditor -lguix $(LIB_DIR)/libglobal.a \
+	$(CXX) $(CXXFLAGS) $(FVOBJECTS) \
+	-ltcmdiagram -ltcmeditor -ltcmguix -ltcmlglobal \
 	tcmfv.o -o $@ $(LDFLAGS) $(LDLIBS)
-	chmod a+rx $@
-	$(STRIP) $@
-	$(MV) $@ $(BIN_DIR)
+	$(MV) -f $@ $(BIN_DIR)
 
 libtcmfv.a: $(FVOBJECTS)
-	$(AR) $@ $(FVOBJECTS)
-	chmod a+rx $@
+	$(AR) cr $@ $(FVOBJECTS)
 	$(RANLIB) $@
-	$(MV) $@ $(LIB_DIR)
+	$(MV) -f $@ $(LIB_DIR)
 
 tdfd:   $(DFOBJECTS) dfeditor.o
-	$(PURIFY) $(CC) $(CFLAGS) $(DFOBJECTS) dfeditor.o -o $@ \
-	$(LDFLAGS) -ldiagram -leditor -lgui -lglobal $(LDLIBS)
-	chmod a+rx $@
-	$(STRIP) $@
-	$(MV) $@ $(BIN_DIR)
+	$(CXX) $(CXXFLAGS) $(DFOBJECTS) dfeditor.o -o $@ \
+	$(LDFLAGS) -ltcmdiagram -ltcmeditor -ltcmgui -ltcmglobal $(LDLIBS)
+	$(MV) -f $@ $(BIN_DIR)
 
 tsnd:   $(SNOBJECTS) $(PARSER) sneditor.o
-	$(PURIFY) $(CC) $(CFLAGS) $(SNOBJECTS) $(PARSER) sneditor.o -o $@ \
-	$(LDFLAGS) -ldiagram -leditor -lgui -lglobal $(LDLIBS)
+	$(CXX) $(CXXFLAGS) $(SNOBJECTS) $(PARSER) sneditor.o -o $@ \
+	$(LDFLAGS) -ltcmdiagram -ltcmeditor -ltcmgui -ltcmglobal $(LDLIBS)
 	chmod a+rx $@
-	$(STRIP) $@
-	$(MV) $@ $(BIN_DIR)
+	$(MV) -f $@ $(BIN_DIR)
 
 tefd:  $(DCFOBJECTS) dcfeditor.o
-	$(PURIFY) $(CC) $(CFLAGS) $(DCFOBJECTS) dcfeditor.o -o $@ \
-	$(LDFLAGS) -ldiagram -leditor -lgui -lglobal $(LDLIBS)
-	chmod a+rx $@
-	$(STRIP) $@
-	$(MV) $@ $(BIN_DIR)
+	$(CXX) $(CXXFLAGS) $(DCFOBJECTS) dcfeditor.o -o $@ \
+	$(LDFLAGS) -ltcmdiagram -ltcmeditor -ltcmgui -ltcmglobal $(LDLIBS)
+	$(MV) -f $@ $(BIN_DIR)
 
 cardconstraint.tab.h: cardconstraint.y
-	$(YACC) --debug -p cardconstraint -d cardconstraint.y
+	$(YACC) -b cardconstraint -p cardconstraint -d cardconstraint.y
 cardconstraint.tab.c: cardconstraint.y cardconstraint.l
-	$(YACC) --debug -p cardconstraint -d cardconstraint.y
+	$(YACC) -b cardconstraint -p cardconstraint -d cardconstraint.y
 cardconstraint.c: cardconstraint.l cardconstraint.tab.h
 	$(LEX) -Pcardconstraint -ocardconstraint.c cardconstraint.l
 cardconstraint.o: cardconstraint.c
-	$(Cc) -c cardconstraint.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c cardconstraint.c
 cardconstraint.tab.o: cardconstraint.tab.h cardconstraint.tab.c
-	$(Cc) -c cardconstraint.tab.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c cardconstraint.tab.c
 
 clean: xclean
 	rm -f cardconstraint.c cardconstraint.tab.h cardconstraint.tab.c