92103d6d5c
PR: 11842 Submitted by: Jeremy Lea <reg@shale.csir.co.za>
57 lines
2.4 KiB
Plaintext
57 lines
2.4 KiB
Plaintext
--- src/Makefile.orig Thu Apr 15 11:05:15 1999
|
|
+++ src/Makefile Fri May 28 18:43:37 1999
|
|
@@ -1,14 +1,15 @@
|
|
SHELL=/bin/sh
|
|
-CC = gcc
|
|
-C_FLAGS = -Wall -g -O2 -m486 -fno-strength-reduce
|
|
-GTK_CFLAGS = `gtk-config --cflags`
|
|
-GTK_LIBS = `gtk-config --libs`
|
|
-LFLAGS = $(GTK_LIBS) -lresolv -lXmu -lXt -lSM -lICE
|
|
+CC?= gcc
|
|
+C_FLAGS = $(CFLAGS)
|
|
+# -Wall -g -O2 -m486 -fno-strength-reduce
|
|
+GTK_CFLAGS = `gtk12-config --cflags`
|
|
+GTK_LIBS = `gtk12-config --libs`
|
|
+LFLAGS = $(GTK_LIBS) -lXmu -lXt -lSM -lICE
|
|
PROGNAME = IglooFTP
|
|
PROGNAME-STATIC = IglooFTP-static
|
|
VERSION = 0.6.1
|
|
VERSION_DATE = 1999
|
|
-DESTDIR = /usr/local
|
|
+DESTDIR?= /usr/X11R6
|
|
BIN_PATH = $(DESTDIR)/bin
|
|
MAN_PATH = $(DESTDIR)/man
|
|
SHARE_PATH = $(DESTDIR)/share/$(PROGNAME)
|
|
@@ -50,14 +51,14 @@
|
|
@if ! test -e $(SHARE_PATH)/app_ass; then \
|
|
echo "Making $(SHARE_PATH)/app_ass directory ..."; mkdir -m 0755 $(SHARE_PATH)/app_ass; \
|
|
else :; fi;
|
|
- /usr/bin/install -s -m 755 $(PROGNAME) $(BIN_PATH)
|
|
- /usr/bin/install -m 644 ../share/docs/* $(SHARE_PATH)/docs/
|
|
- /usr/bin/install -m 644 ../share/html/*.* $(SHARE_PATH)/html/
|
|
- /usr/bin/install -m 644 ../share/html/images/*.* $(SHARE_PATH)/html/images/
|
|
- /usr/bin/install -m 644 ../share/xpm/* $(SHARE_PATH)/xpm/
|
|
- /usr/bin/install -m 644 ../share/bookmarks/* $(SHARE_PATH)/bookmarks/
|
|
- /usr/bin/install -m 644 ../share/app_ass/* $(SHARE_PATH)/app_ass/
|
|
- /usr/bin/install -m 644 ../share/gtkrc $(SHARE_PATH)/gtkrc
|
|
+ /usr/bin/install -c -s -m 755 $(PROGNAME) $(BIN_PATH)
|
|
+ /usr/bin/install -c -m 644 ../share/docs/* $(SHARE_PATH)/docs/
|
|
+ /usr/bin/install -c -m 644 ../share/html/*.* $(SHARE_PATH)/html/
|
|
+ /usr/bin/install -c -m 644 ../share/html/images/*.* $(SHARE_PATH)/html/images/
|
|
+ /usr/bin/install -c -m 644 ../share/xpm/* $(SHARE_PATH)/xpm/
|
|
+ /usr/bin/install -c -m 644 ../share/bookmarks/* $(SHARE_PATH)/bookmarks/
|
|
+ /usr/bin/install -c -m 644 ../share/app_ass/* $(SHARE_PATH)/app_ass/
|
|
+ /usr/bin/install -c -m 644 ../share/gtkrc $(SHARE_PATH)/gtkrc
|
|
|
|
|
|
|
|
@@ -111,7 +112,7 @@
|
|
@echo "#define COMPILE_TIME \"`date +%T`\"" >> version.h
|
|
@echo "#define COMPILE_BY \"`whoami`\"" >> version.h
|
|
@echo "#define COMPILE_HOST \"`hostname`\"" >> version.h
|
|
- @echo "#define GTK_VERSION \"GTK+ `gtk-config --version`\"" >> version.h
|
|
+ @echo "#define GTK_VERSION \"GTK+ `gtk12-config --version`\"" >> version.h
|
|
@echo "#define CC_VERSION \"`$(CC) -v 2>&1 | tail -1`\"">>version.h
|
|
@echo "#define CODE_LINES \"`cat *.c *.h | grep -ch -e \"[[:alpha:]|[:punct:]]\"`\"">>version.h
|
|
|