Lines 1-10
Link Here
|
1 |
--- Makefile.orig Sat Sep 4 22:45:16 1999 |
1 |
--- Makefile.orig 1999-09-04 22:45:16.000000000 +0900 |
2 |
+++ Makefile Mon May 16 15:30:41 2005 |
2 |
+++ Makefile 2012-09-11 04:28:11.000000000 +0900 |
3 |
@@ -1,9 +1,9 @@ |
3 |
@@ -1,27 +1,27 @@ |
4 |
-CC =g++ |
4 |
CC =g++ |
5 |
-CFLAGS =-c -g -O |
5 |
-CFLAGS =-c -g -O |
6 |
-INCDIRS =-I/usr/X11R6/include -I/usr/local/include |
6 |
-INCDIRS =-I/usr/X11R6/include -I/usr/local/include |
7 |
+CC =${CXX} |
|
|
8 |
+CFLAGS =${CXXFLAGS} -c |
7 |
+CFLAGS =${CXXFLAGS} -c |
9 |
+INCDIRS =-I${LOCALBASE}/include `imlib-config --cflags` |
8 |
+INCDIRS =-I${LOCALBASE}/include `imlib-config --cflags` |
10 |
LIBS =-lX11 -lXext -lm -lfl |
9 |
LIBS =-lX11 -lXext -lm -lfl |
Lines 15-26
Link Here
|
15 |
OBJS =xwindow.o xfont.o xtext.o xjtext.o lex.yy.o parser.tab.o xjtext-main.o |
14 |
OBJS =xwindow.o xfont.o xtext.o xjtext.o lex.yy.o parser.tab.o xjtext-main.o |
16 |
|
15 |
|
17 |
all: xjtext |
16 |
all: xjtext |
18 |
@@ -39,7 +39,7 @@ |
17 |
|
19 |
${CC} ${CFLAGS} ${INCDIRS} lex.yy.c |
18 |
xwindow.o: xwindow.h xwindow.c |
|
|
19 |
- ${CC} ${CFLAGS} ${INCDIRS} xwindow.c |
20 |
+ ${CXX} ${CFLAGS} ${INCDIRS} xwindow.c |
21 |
|
22 |
xfont.o: xwindow.h xfont.h xfont.c |
23 |
- ${CC} ${CFLAGS} ${INCDIRS} xfont.c |
24 |
+ ${CXX} ${CFLAGS} ${INCDIRS} xfont.c |
25 |
|
26 |
xtext.o: xwindow.h xfont.h xtext.h xtext.c |
27 |
- ${CC} ${CFLAGS} ${INCDIRS} xtext.c |
28 |
+ ${CXX} ${CFLAGS} ${INCDIRS} xtext.c |
29 |
|
30 |
xjtext.o: xwindow.h xfont.h xtext.h xjtext.h xjtext.c |
31 |
- ${CC} ${CFLAGS} ${INCDIRS} xjtext.c |
32 |
+ ${CXX} ${CFLAGS} ${INCDIRS} xjtext.c |
33 |
|
34 |
xjtext-main.o: xwindow.h xfont.h xtext.h xjtext.h xjtext-main.c |
35 |
- ${CC} ${CFLAGS} ${INCDIRS} xjtext-main.c |
36 |
+ ${CXX} ${CFLAGS} ${INCDIRS} xjtext-main.c |
37 |
|
38 |
parser.tab.c: xwindow.h xfont.h xtext.h xjtext.h parsing.h parser.y |
39 |
bison -dv parser.y |
40 |
@@ -33,13 +33,13 @@ |
41 |
flex lex.l |
42 |
|
43 |
parser.tab.o: parser.tab.c |
44 |
- ${CC} ${CFLAGS} ${INCDIRS} parser.tab.c |
45 |
+ ${CXX} ${CFLAGS} ${INCDIRS} parser.tab.c |
46 |
|
47 |
lex.yy.o: xwindow.h xfont.h xtext.h xjtext.h parsing.h parser.tab.h lex.yy.c |
48 |
- ${CC} ${CFLAGS} ${INCDIRS} lex.yy.c |
49 |
+ ${CXX} ${CFLAGS} ${INCDIRS} lex.yy.c |
20 |
|
50 |
|
21 |
xjtext: ${OBJS} |
51 |
xjtext: ${OBJS} |
22 |
- LD_RUN_PATH=/usr/X11R6/lib/ ${CC} ${OBJS} ${LIBDIRS} ${LIBS} ${IMLIBS}\ |
52 |
- LD_RUN_PATH=/usr/X11R6/lib/ ${CC} ${OBJS} ${LIBDIRS} ${LIBS} ${IMLIBS}\ |
23 |
+ LD_RUN_PATH=${LOCALBASE}/lib/ ${CC} ${OBJS} ${LIBDIRS} ${LIBS} ${IMLIBS}\ |
53 |
+ LD_RUN_PATH=${LOCALBASE}/lib/ ${CXX} ${OBJS} ${LIBDIRS} ${LIBS} ${IMLIBS}\ |
24 |
-o xjtext |
54 |
-o xjtext |
25 |
|
55 |
|
26 |
clean: |
56 |
clean: |