openbsd-ports/graphics/gfract/patches/patch-Makefile
2007-10-24 22:40:53 +00:00

28 lines
782 B
Plaintext

$OpenBSD: patch-Makefile,v 1.3 2007/10/24 22:43:42 jasper Exp $
--- Makefile.orig Tue Apr 18 09:31:44 2006
+++ Makefile Tue Oct 16 14:01:56 2007
@@ -2,8 +2,7 @@ PROG := gfract
CXX := g++
-DEFS := -Wall -ansi -pedantic -D_GNU_SOURCE -DGDK_DISABLE_DEPRECATED \
- -DGTK_DISABLE_DEPRECATED
+DEFS := -Wall -ansi -pedantic -D_GNU_SOURCE -DGDK_DISABLE_DEPRECATED
DEFS := $(shell pkg-config --cflags gtk+-2.0 libpng) $(DEFS)
@@ -19,11 +18,11 @@ HEADERS := $(wildcard *.h *.xpm)
$(PROG): $(OBJS)
@echo Linking $(PROG)
- @$(CXX) $(CXXFLAGS) $(OBJS) $(LDFLAGS) -o $(PROG)
+ $(CXX) $(CXXFLAGS) $(OBJS) $(LDFLAGS) -o $(PROG)
%.o: %.cpp $(HEADERS)
@echo Compiling $<
- @$(CXX) $(CXXFLAGS) -c $< -o $@
+ $(CXX) $(DEFS) $(CXXFLAGS) -c $< -o $@
clean:
rm -f $(PROG) $(OBJS)