Lines 1-5
Link Here
|
1 |
--- Makefile.orig 2009-12-21 18:58:35.000000000 -0800 |
1 |
--- Makefile.orig 2013-07-20 02:05:36.000000000 -0700 |
2 |
+++ Makefile 2012-05-16 00:49:03.000000000 -0700 |
2 |
+++ Makefile 2014-04-12 15:28:52.000000000 -0700 |
3 |
@@ -32,10 +32,10 @@ |
3 |
@@ -32,10 +32,10 @@ |
4 |
# BINDIR directory. Files needed at run time will |
4 |
# BINDIR directory. Files needed at run time will |
5 |
# be installed in the SHAREDIR directory. |
5 |
# be installed in the SHAREDIR directory. |
Lines 13-45
Link Here
|
13 |
#SHAREDIR=/usr/share/fl_moxgen |
13 |
#SHAREDIR=/usr/share/fl_moxgen |
14 |
|
14 |
|
15 |
# If libHaru is installed, be sure that LIBHARU_INC |
15 |
# If libHaru is installed, be sure that LIBHARU_INC |
16 |
@@ -44,30 +44,24 @@ |
16 |
@@ -44,14 +44,8 @@ |
17 |
# accordingly. If libHaru is not installed, |
17 |
# accordingly. If libHaru is not installed, |
18 |
# comment out both lines. |
18 |
# comment out both lines. |
19 |
|
19 |
|
20 |
-LIBHARU_INC = /usr/local/include |
20 |
-#LIBHARU_INC = /usr/local/include |
21 |
+LIBHARU_INC = %%LOCALBASE%%/include |
21 |
-LIBHARU_INC = /usr/include |
22 |
#LIBHARU_INC = /usr/include |
22 |
- |
23 |
|
|
|
24 |
-# Set the FLTK_INC variable to be the location of the |
23 |
-# Set the FLTK_INC variable to be the location of the |
25 |
-# include files for FLTK. |
24 |
-# include files for FLTK. |
26 |
- |
25 |
- |
27 |
-FLTK_INC = /usr/include |
26 |
-FLTK_INC = /usr/include |
28 |
-#FLTK_INC = /usr/local/include |
27 |
-#FLTK_INC = /usr/local/include |
29 |
- |
28 |
+LIBHARU_INC = %%PREFIX%%/include |
|
|
29 |
+#LIBHARU_INC = /usr/include |
30 |
|
30 |
all: |
31 |
all: |
31 |
@if [ -f $(LIBHARU_INC)/hpdf.h ]; \ |
32 |
@rm -f fl_moxgen_defines.h |
32 |
then $(MAKE) fl_moxgen; \ |
33 |
@@ -60,21 +54,19 @@ |
33 |
else $(MAKE) fl_moxgen_no_pdf; fi |
34 |
else $(MAKE) fl_moxgen_no_pdf; fi |
34 |
|
35 |
|
35 |
write_pdf.o: write_pdf.c |
36 |
write_pdf.o: write_pdf.c |
36 |
- @$(CC) -c -o write_pdf.o write_pdf.c |
37 |
- @$(CC) -c -o write_pdf.o write_pdf.c |
37 |
+ @$(CC) -c -o write_pdf.o write_pdf.c -I$(LIBHARU_INC) |
38 |
+ @$(CC) -c -o write_pdf.o write_pdf.c -I%%PREFIX%%/include |
38 |
|
39 |
|
39 |
fl_moxgen: fl_moxgen.cxx fl_moxgen_defines.h write_pdf.o |
40 |
fl_moxgen: fl_moxgen.cxx fl_moxgen_defines.h write_pdf.o |
40 |
@echo "Building Fl_MoxGen with PDF support" |
41 |
@echo "Building Fl_MoxGen with PDF support" |
41 |
- $(CXX) -o fl_moxgen fl_moxgen.cxx write_pdf.o -I$(FLTK_INC) -I. -lfltk -lfltk_images -lhpdf |
42 |
- $(CXX) -o fl_moxgen fl_moxgen.cxx write_pdf.o -I$(FLTK_INC) -I. -lfltk -lfltk_images -lhpdf |
42 |
+ $(CXX) -o fl_moxgen fl_moxgen.cxx write_pdf.o -I. `fltk-config --use-images --cxxflags --ldflags` -lhpdf |
43 |
+ $(CXX) -o fl_moxgen fl_moxgen.cxx write_pdf.o -DUSING_LIB_HARU `fltk-config --use-images --cxxflags --ldflags` -I. -lhpdf |
43 |
|
44 |
|
44 |
fl_moxgen_no_pdf: fl_moxgen.cxx fl_moxgen_defines.h |
45 |
fl_moxgen_no_pdf: fl_moxgen.cxx fl_moxgen_defines.h |
45 |
@echo "Building Fl_MoxGen without PDF support" |
46 |
@echo "Building Fl_MoxGen without PDF support" |
Lines 48-50
Link Here
|
48 |
|
49 |
|
49 |
fl_moxgen_defines.h: |
50 |
fl_moxgen_defines.h: |
50 |
@rm -f fl_moxgen_defines.h |
51 |
@rm -f fl_moxgen_defines.h |
|
|
52 |
@echo "#define SHAREDIR \"$(SHAREDIR)\"" > fl_moxgen_defines.h |
53 |
- @if [ -f $(LIBHARU_INC)/hpdf.h ]; \ |
54 |
- then echo "#define USING_LIB_HARU" >> fl_moxgen_defines.h; fi |
55 |
install: |
56 |
mkdir -p $(SHAREDIR) |
57 |
cp fl_moxgen $(BINDIR) |