patches/newt-02-solaris-makefile.diff
author rtarnell
Fri, 20 Jun 2008 16:27:04 +0000
changeset 1218 5a8414397010
parent 1073 563acf208975
permissions -rw-r--r--
2008-06-20 River Tarnell <[email protected]> * SFElibcaca.spec, SFEnewt.spec, SFEmuttng.spec: Use SUNWslang * patches/newt-02-solaris-makefile.diff: Remove -Wall from makefile, don't build 'depend' target * SFEmutt.spec, SFEslang.spec: Move to archive

--- Makefile.in.orig	Fri Jun 20 17:21:47 2008
+++ Makefile.in	Fri Jun 20 17:26:02 2008
@@ -3,14 +3,13 @@
 LIBTCL = -ltcl8.4
 
 GPM_SUPPORT=@gpm_support@
-CFLAGS = $(RPM_OPT_FLAGS) -Wall  -D_GNU_SOURCE -g -O2 -DUTF8 -fPIC -I/usr/include/slang
+CFLAGS = $(RPM_OPT_FLAGS) -D_GNU_SOURCE -g -O2 -DUTF8 -fPIC -I/usr/include/slang
 
-SHLIBFLAGS= -Wl,-O1 -Wl,--version-script,newt.0.52.ver
 VERSION = @VERSION@
 CVSTAG = r$(subst .,-,$(VERSION))
 SONAME = @SONAME@
 
-PYTHONVERS = $(shell pyversions --supported)
+PYTHONVERS = python2.4
 
 WHIPTCLSO=whiptcl.so
 
@@ -40,11 +39,11 @@
 SHAREDDIR = shared
 SHAREDOBJS = $(patsubst %,$(SHAREDDIR)/%, $(LIBOBJS))
 
-ifeq (.depend,$(wildcard .depend))
+#ifeq (.depend,$(wildcard .depend))
 TARGET=$(PROGS)
-else
-TARGET=depend $(PROGS)
-endif
+#else
+#TARGET=depend $(PROGS)
+#endif
 
 all:	$(TARGET) _snackmodule.so po/stamp-po
 
@@ -52,7 +51,7 @@
 	$(MAKE) -C po stamp-po
 
 test:	$(TESTOBJS) $(LIBNEWT)
-	$(CC) -g -o test $(TESTOBJS) $(LIBNEWT) $(LIBS) -static
+	$(CC) -g -o test $(TESTOBJS) $(LIBNEWT) $(LIBS)
 
 testgrid:	testgrid.o $(LIBNEWT)
 	$(CC) -g -o testgrid testgrid.o $(LIBNEWT) $(LIBS)
@@ -68,18 +67,16 @@
 
 _snackmodule.so:   snackmodule.c $(LIBNEWTSH)
 	for ver in $(PYTHONVERS) ; do \
-	    if [ ! -f "$$ver/_snackmodule.so" -o $(LIBNEWTSH) -nt "$$ver/_snackmodule.so" ]; then \
-	    	mkdir -p $$ver ;\
-	        $(CC) $(CFLAGS) -I/usr/include/$$ver -fPIC -c -o $$ver/snackmodule.o snackmodule.c ;\
+	    mkdir -p $$ver ;\
+	    $(CC) $(CFLAGS) -I/usr/include/$$ver -fPIC -c -o $$ver/snackmodule.o snackmodule.c ;\
 		$(CC) --shared $(SHCFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L .  -lnewt  ;\
-	    fi ; \
 	done
 
 whiptail: $(NDIALOGOBJS) $(LIBNEWTSH)
-	$(CC) -g -o whiptail $(NDIALOGOBJS) -L . -lnewt -lpopt
+	$(CC) -g -o whiptail $(NDIALOGOBJS) -L . -lnewt -lpopt -lslang
 
 whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH)
-	$(CC) -shared $(SHCFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L . -lnewt  $(LIBTCL) -lpopt
+	$(CC) -shared $(SHCFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L . -lnewt  $(LIBTCL) -lpopt -lslang
 
 # Ensure dialogboxes is compiled -fPIC
 dialogboxes.o: dialogboxes.c
@@ -111,7 +108,7 @@
 sharedlib: $(LIBNEWTSH)
 
 $(LIBNEWTSH): $(SHAREDDIR) $(SHAREDOBJS)
-	$(CC) -shared -o $(LIBNEWTSH) $(SHLIBFLAGS) -Wl,-soname,$(LIBNEWTSONAME) $(SHAREDOBJS) $(SHLIBS)
+	$(CC) -shared -o $(LIBNEWTSH) $(SHAREDOBJS) $(SHLIBS)
 	ln -fs $(LIBNEWTSH) libnewt.so
 
 $(SHAREDDIR)/%.o : %.c