blob: 04bb4581f67a7fd16accce0ce1862ebba67fe473 (
plain) (
blame)
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
|
--- Makefile.orig 2012-12-23 15:41:45 UTC
+++ Makefile
@@ -17,8 +17,8 @@ INCLUDES=-I.
# new gnu compilers have a really annoying default behavior of wrapping
# error message lines. The default should be NO-WRAPPING.
-OPTIONS=-O2 -Wall -x c++ -fmessage-length=0 -fno-exceptions
-CFLAGS=$(INCLUDES) $(OPTIONS)
+OPTIONS=-fmessage-length=0 -fno-exceptions
+CXXFLAGS+=$(INCLUDES) $(OPTIONS)
OBJECTS = \
globals.o \
@@ -44,7 +44,7 @@ OBJECTS = \
all : tpasm
tpasm : $(OBJECTS)
- $(CC) -O $(OBJECTS) -lstdc++ -o tpasm
+ $(CXX) $(OBJECTS) -o $@
clean :
rm -f *.o
@@ -58,5 +58,5 @@ install :
# 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} ${CXXFLAGS} ${CPPFLAGS} -o $@ -c $<
|