$NetBSD: patch-aa,v 1.3 2004/06/12 02:30:35 grant Exp $ --- Makefile.orig 2000-02-11 12:02:10.000000000 +1100 +++ Makefile @@ -1,14 +1,19 @@ # "Artistic Style" Makefile -CPPFLAGS = -Wall -Wno-sign-compare -O2 -OBJS = ASResource.o ASBeautifier.o ASFormatter.o astyle_main.o +#CPPFLAGS = -Wall -Wno-sign-compare -O2 +OBJS = asresource.o asbeautifier.o asformatter.o astyle_main.o + +all: astyle + +install: + install -s -c astyle ${LOCALBASE}/bin/ astyle: $(OBJS) - g++ $(CPPFLAGS) -o astyle $(OBJS) + $(CXX) $(CPPFLAGS) $(LDFLAGS) -o astyle $(OBJS) .cpp.o: - g++ $(CPPFLAGS) -c $< + $(CXX) $(CPPFLAGS) $(CFLAGS) -c $< .SUFFIXES: .cpp .c .o clean: - rm *.o + rm *.o astyle