2002-07-29 17:34:41 -04:00
|
|
|
$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 @@
|
2001-03-23 21:25:05 -05:00
|
|
|
# "Artistic Style" Makefile
|
|
|
|
|
|
|
|
-CPPFLAGS = -Wall -Wno-sign-compare -O2
|
2002-07-29 17:34:41 -04:00
|
|
|
+CXXFLAGS += -Wall -Wno-sign-compare
|
2001-03-23 21:25:05 -05:00
|
|
|
OBJS = ASResource.o ASBeautifier.o ASFormatter.o astyle_main.o
|
2002-07-29 17:34:41 -04:00
|
|
|
+CXX ?= g++
|
2001-03-23 21:25:05 -05:00
|
|
|
|
2002-07-29 17:34:41 -04:00
|
|
|
-astyle: $(OBJS)
|
2001-03-23 21:25:05 -05:00
|
|
|
- g++ $(CPPFLAGS) -o astyle $(OBJS)
|
2002-07-29 17:34:41 -04:00
|
|
|
+all: astyle
|
2001-03-23 21:25:05 -05:00
|
|
|
|
2002-07-29 17:34:41 -04:00
|
|
|
+astyle: ${OBJS}
|
|
|
|
+ ${CXX} ${CXXFLAGS} -o $@ ${OBJS}
|
|
|
|
+
|
|
|
|
+.SUFFIXES: .cpp .o
|
2001-03-23 21:25:05 -05:00
|
|
|
.cpp.o:
|
|
|
|
- g++ $(CPPFLAGS) -c $<
|
2002-07-29 17:34:41 -04:00
|
|
|
-.SUFFIXES: .cpp .c .o
|
|
|
|
+ ${CXX} ${CXXFLAGS} -c -o $@ $<
|
2001-03-23 21:25:05 -05:00
|
|
|
|
|
|
|
clean:
|
2002-07-29 17:34:41 -04:00
|
|
|
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
|