openbsd-ports/devel/astyle/patches/patch-Makefile
naddy 64f88786a5 Update to 1.15.3. Changes in this release:
- numerous bug fixes
- license changed from Artistic License to GPL
- support for C#

No longer requires gmake.

Submitted by:	Andrey Smagin <andrey@smagin.com>

Respect CXX/CXXFLAGS.
2002-07-29 21:34:41 +00:00

34 lines
915 B
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2002/07/29 21:34:42 naddy Exp $
--- Makefile.orig Fri Feb 11 13:02:00 2000
+++ Makefile Mon Jul 29 23:13:15 2002
@@ -1,14 +1,24 @@
# "Artistic Style" Makefile
-CPPFLAGS = -Wall -Wno-sign-compare -O2
+CXXFLAGS += -Wall -Wno-sign-compare
OBJS = ASResource.o ASBeautifier.o ASFormatter.o astyle_main.o
+CXX ?= g++
-astyle: $(OBJS)
- g++ $(CPPFLAGS) -o astyle $(OBJS)
+all: astyle
+astyle: ${OBJS}
+ ${CXX} ${CXXFLAGS} -o $@ ${OBJS}
+
+.SUFFIXES: .cpp .o
.cpp.o:
- g++ $(CPPFLAGS) -c $<
-.SUFFIXES: .cpp .c .o
+ ${CXX} ${CXXFLAGS} -c -o $@ $<
clean:
rm *.o
+
+install: astyle
+ ${BSD_INSTALL_PROGRAM} astyle ${PREFIX}/bin
+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/doc/astyle
+ ${BSD_INSTALL_DATA} astyle.html ${PREFIX}/share/doc/astyle
+ ${BSD_INSTALL_DATA} astyle_release_notes.html ${PREFIX}/share/doc/astyle
+ ${BSD_INSTALL_DATA} license.html ${PREFIX}/share/doc/astyle