ports/devel/tpasm/files/patch-Makefile
Dmitry Marakasov 1a9f50713a - Add LICENSE_FILE
- Switch to options helpers
- Regenerate patches with `make makepatch`
2016-03-30 00:53:27 +00:00

29 lines
808 B
Text

--- 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 $<