author | jurikm |
Sun, 12 Feb 2012 14:04:10 +0000 | |
changeset 8245 | 383896da4129 |
parent 1218 | 5a8414397010 |
permissions | -rw-r--r-- |
1218 | 1 |
--- Makefile.in.orig Fri Jun 20 17:21:47 2008 |
2 |
+++ Makefile.in Fri Jun 20 17:26:02 2008 |
|
3 |
@@ -3,14 +3,13 @@ |
|
4 |
LIBTCL = -ltcl8.4 |
|
5 |
||
1073
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
6 |
GPM_SUPPORT=@gpm_support@ |
1218 | 7 |
-CFLAGS = $(RPM_OPT_FLAGS) -Wall -D_GNU_SOURCE -g -O2 -DUTF8 -fPIC -I/usr/include/slang |
8 |
+CFLAGS = $(RPM_OPT_FLAGS) -D_GNU_SOURCE -g -O2 -DUTF8 -fPIC -I/usr/include/slang |
|
1073
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
9 |
|
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
10 |
-SHLIBFLAGS= -Wl,-O1 -Wl,--version-script,newt.0.52.ver |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
11 |
VERSION = @VERSION@ |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
12 |
CVSTAG = r$(subst .,-,$(VERSION)) |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
13 |
SONAME = @SONAME@ |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
14 |
|
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
15 |
-PYTHONVERS = $(shell pyversions --supported) |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
16 |
+PYTHONVERS = python2.4 |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
17 |
|
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
18 |
WHIPTCLSO=whiptcl.so |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
19 |
|
1218 | 20 |
@@ -40,11 +39,11 @@ |
21 |
SHAREDDIR = shared |
|
22 |
SHAREDOBJS = $(patsubst %,$(SHAREDDIR)/%, $(LIBOBJS)) |
|
23 |
||
24 |
-ifeq (.depend,$(wildcard .depend)) |
|
25 |
+#ifeq (.depend,$(wildcard .depend)) |
|
26 |
TARGET=$(PROGS) |
|
27 |
-else |
|
28 |
-TARGET=depend $(PROGS) |
|
29 |
-endif |
|
30 |
+#else |
|
31 |
+#TARGET=depend $(PROGS) |
|
32 |
+#endif |
|
33 |
||
34 |
all: $(TARGET) _snackmodule.so po/stamp-po |
|
35 |
||
36 |
@@ -52,7 +51,7 @@ |
|
1073
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
37 |
$(MAKE) -C po stamp-po |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
38 |
|
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
39 |
test: $(TESTOBJS) $(LIBNEWT) |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
40 |
- $(CC) -g -o test $(TESTOBJS) $(LIBNEWT) $(LIBS) -static |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
41 |
+ $(CC) -g -o test $(TESTOBJS) $(LIBNEWT) $(LIBS) |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
42 |
|
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
43 |
testgrid: testgrid.o $(LIBNEWT) |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
44 |
$(CC) -g -o testgrid testgrid.o $(LIBNEWT) $(LIBS) |
1218 | 45 |
@@ -68,18 +67,16 @@ |
1073
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
46 |
|
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
47 |
_snackmodule.so: snackmodule.c $(LIBNEWTSH) |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
48 |
for ver in $(PYTHONVERS) ; do \ |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
49 |
- if [ ! -f "$$ver/_snackmodule.so" -o $(LIBNEWTSH) -nt "$$ver/_snackmodule.so" ]; then \ |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
50 |
- mkdir -p $$ver ;\ |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
51 |
- $(CC) $(CFLAGS) -I/usr/include/$$ver -fPIC -c -o $$ver/snackmodule.o snackmodule.c ;\ |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
52 |
+ mkdir -p $$ver ;\ |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
53 |
+ $(CC) $(CFLAGS) -I/usr/include/$$ver -fPIC -c -o $$ver/snackmodule.o snackmodule.c ;\ |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
54 |
$(CC) --shared $(SHCFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L . -lnewt ;\ |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
55 |
- fi ; \ |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
56 |
done |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
57 |
|
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
58 |
whiptail: $(NDIALOGOBJS) $(LIBNEWTSH) |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
59 |
- $(CC) -g -o whiptail $(NDIALOGOBJS) -L . -lnewt -lpopt |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
60 |
+ $(CC) -g -o whiptail $(NDIALOGOBJS) -L . -lnewt -lpopt -lslang |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
61 |
|
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
62 |
whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH) |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
63 |
- $(CC) -shared $(SHCFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L . -lnewt $(LIBTCL) -lpopt |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
64 |
+ $(CC) -shared $(SHCFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L . -lnewt $(LIBTCL) -lpopt -lslang |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
65 |
|
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
66 |
# Ensure dialogboxes is compiled -fPIC |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
67 |
dialogboxes.o: dialogboxes.c |
1218 | 68 |
@@ -111,7 +108,7 @@ |
1073
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
69 |
sharedlib: $(LIBNEWTSH) |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
70 |
|
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
71 |
$(LIBNEWTSH): $(SHAREDDIR) $(SHAREDOBJS) |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
72 |
- $(CC) -shared -o $(LIBNEWTSH) $(SHLIBFLAGS) -Wl,-soname,$(LIBNEWTSONAME) $(SHAREDOBJS) $(SHLIBS) |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
73 |
+ $(CC) -shared -o $(LIBNEWTSH) $(SHAREDOBJS) $(SHLIBS) |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
74 |
ln -fs $(LIBNEWTSH) libnewt.so |
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
75 |
|
563acf208975
2008-05-01 Ananth Shrinivas <[email protected]>
ananthshrinivas
parents:
diff
changeset
|
76 |
$(SHAREDDIR)/%.o : %.c |