openbsd-ports/graphics/gfract/patches/patch-Makefile

33 lines
982 B
Plaintext
Raw Normal View History

--- Makefile.orig Mon Feb 28 16:00:56 2005
+++ Makefile Mon Apr 17 14:14:51 2006
@@ -5,13 +5,13 @@ CC := g++
DEFS := -Wall -ansi -pedantic -D_GNU_SOURCE -DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED
-DEFS := $(shell pkg-config --cflags gtk+-2.0) $(DEFS)
+DEFS := $(shell pkg-config --cflags libpng gtk+-2.0) $(DEFS)
CXXFLAGS := $(DEFS) -O2 -fomit-frame-pointer -ffast-math
#CXXFLAGS := $(DEFS) -g
LDFLAGS := -lpng -lz
-LDFLAGS := $(shell pkg-config --libs gtk+-2.0) $(LDFLAGS)
+LDFLAGS := $(shell pkg-config --libs libpng gtk+-2.0) $(LDFLAGS)
SRC := $(wildcard *.cpp)
OBJS := $(patsubst %.cpp, %.o, $(SRC))
@@ -19,11 +19,11 @@ HEADERS := $(wildcard *.h *.xpm)
$(PROG): $(OBJS)
@echo Linking $(PROG)
- @$(CC) $(CXXFLAGS) $(OBJS) $(LDFLAGS) -o $(PROG)
+ $(CXX) $(CXXFLAGS) $(OBJS) $(LDFLAGS) -o $(PROG)
%.o: %.cpp $(HEADERS)
@echo Compiling $<
- @$(CC) $(CXXFLAGS) -c $< -o $@
+ $(CXX) $(DEFS) $(CXXFLAGS) -c $< -o $@
clean:
rm -f $(PROG) $(OBJS)