blob: 178ed1906d08fe8b6218dff65b9e129544f684cc (
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
|
$NetBSD: patch-aa,v 1.3 2003/12/02 17:59:45 sketch Exp $
--- Makefile.orig 2003-12-02 17:09:48.000000000 +0000
+++ Makefile 2003-12-02 17:12:02.000000000 +0000
@@ -16,7 +16,7 @@
INCLUDES=-I.
OPTIONS=-O2 -Wall -x c++
-CFLAGS=$(INCLUDES) $(OPTIONS)
+CFLAGS += $(INCLUDES)
OBJECTS = \
globals.o \
@@ -65,7 +65,7 @@
all : tpasm
tpasm : $(OBJECTS)
- $(CC) -O $(OBJECTS) -o tpasm
+ $(CXX) $(CFLAGS) $(OBJECTS) -o tpasm
clean :
rm -f *.o
@@ -79,5 +79,5 @@
# suffix rules (this makes sure that the ".o" files
# end up in their respective directories on all systems)
.c.o:
- ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ -c $<
+ ${CXX} ${CFLAGS} ${CPPFLAGS} -o $@ -c $<
|