blob: 4d7501254ada4198eea3f0d976a2724edef95b5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
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 = $(shell fltk-config --cxxflags)
+LDFLAGS =
+FLTK_LDFLAGS = $(shell 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
|