You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-gfx/monica/files/monica-3.6-makefile-cleanup...

34 lines
907 B

diff -Nuar monica-3.6.orig/Makefile monica-3.6/Makefile
--- monica-3.6.orig/Makefile 2005-03-14 22:00:18.000000000 -0800
+++ monica-3.6/Makefile 2007-11-15 00:48:39.000000000 -0800
@@ -2,22 +2,24 @@
CXX = g++
LINK = g++
CFLAGS = -Wall -O2
-CXXFLAGS = `fltk-config --cxxflags` -Wall -O2
-LDFLAGS = `fltk-config --ldflags`
+CXXFLAGS = -Wall -O2
+FLTK_CXXFLAGS = `fltk-config --cxxflags`
+LDFLAGS =
+FLTK_LDFLAGS = `fltk-config --ldflags`
TARGET = monica
-DESTINATION = /usr/bin
+DESTINATION = $(DESTDIR)/usr/bin
OBJECTS = monica.o
all: $(TARGET)
$(TARGET): $(OBJECTS)
- $(LINK) -o $(TARGET) $(OBJECTS) $(LDFLAGS)
+ $(LINK) -o $(TARGET) $(OBJECTS) $(FLTK_LDFLAGS) $(LDFLAGS)
monica.o: monica.cpp
- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o monica.o monica.cpp
+ $(CXX) -c $(FLTK_CXXFLAGS) $(CXXFLAGS) $(INCPATH) -o monica.o monica.cpp
clean:
rm -f $(OBJECTS)
rm -f monica