1999-03-24 17:46:35 +00:00
|
|
|
--- Makefile Wed Dec 9 23:31:06 1998
|
|
|
|
+++ /home/andy/tmp/wrk/Makefile Tue Mar 16 17:13:19 1999
|
|
|
|
@@ -1,36 +1,49 @@
|
|
|
|
-#-------------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
-# Where to install ezfm files
|
|
|
|
+# X11 base directory
|
1998-08-10 00:28:06 +00:00
|
|
|
+#
|
1999-03-24 17:46:35 +00:00
|
|
|
+X11BASE?=/usr/X11R6
|
|
|
|
+
|
1998-08-10 00:28:06 +00:00
|
|
|
+#
|
1999-03-24 17:46:35 +00:00
|
|
|
+# Local packages directory
|
1998-08-10 00:28:06 +00:00
|
|
|
#
|
1999-03-24 17:46:35 +00:00
|
|
|
-DEST_DIR=/usr/local
|
|
|
|
+LOCALBASE?=/usr/local
|
|
|
|
+
|
|
|
|
#
|
|
|
|
+# Installation prefix
|
|
|
|
+#
|
|
|
|
+PREFIX?=/usr/X11R6
|
|
|
|
+
|
|
|
|
+#-------------------------------------------------------------------------------
|
|
|
|
+#
|
|
|
|
+# Where to install ezfm files
|
1998-08-10 00:28:06 +00:00
|
|
|
#
|
1999-03-24 17:46:35 +00:00
|
|
|
-EZFM_MAGIC=$(DEST_DIR)/lib/ezfm/ezfmMagic
|
|
|
|
-EZFM_EXTENSION=$(DEST_DIR)/lib/ezfm/ezfmExtension
|
|
|
|
+EZFM_MAGIC=$(PREFIX)/share/ezfm/ezfmMagic
|
|
|
|
+EZFM_EXTENSION=$(PREFIX)/share/ezfm/ezfmExtension
|
1998-08-10 00:28:06 +00:00
|
|
|
#
|
|
|
|
# Where to install default initialization file
|
|
|
|
# this file is consulted if ~/.ezfmrc $EZFMRC
|
|
|
|
# are not found.
|
|
|
|
#
|
1999-03-24 17:46:35 +00:00
|
|
|
-EZFM_RC=$(DEST_DIR)/lib/ezfm/ezfmrc
|
|
|
|
+EZFM_RC=$(PREFIX)/share/ezfm/ezfmrc
|
1998-08-10 00:28:06 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Where to install the icons
|
|
|
|
#
|
1999-03-24 17:46:35 +00:00
|
|
|
-EZFM_ICONS=$(DEST_DIR)/lib/ezfm/ezfmIcons
|
|
|
|
+EZFM_ICONS=$(PREFIX)/share/ezfm/ezfmIcons
|
1998-08-10 00:28:06 +00:00
|
|
|
#
|
|
|
|
# Where to install the binary
|
|
|
|
#
|
1999-03-24 17:46:35 +00:00
|
|
|
-BIN=$(DEST_DIR)/bin
|
|
|
|
+BIN=$(PREFIX)/bin
|
1998-08-10 00:28:06 +00:00
|
|
|
#
|
|
|
|
#----------------------------------------------------------------------------------
|
|
|
|
#
|
1999-03-24 17:46:35 +00:00
|
|
|
-CC= gcc -O2 -DLINUX -I../include
|
|
|
|
+CC?= cc
|
|
|
|
+CFLAGS+= -I$(LOCALBASE)/include -I$(X11BASE)/include
|
|
|
|
|
1998-08-10 00:28:06 +00:00
|
|
|
#
|
|
|
|
#----------------------------------------------------------------------------------
|
1999-03-24 17:46:35 +00:00
|
|
|
-LIBS = libfile.a -L../EZWGL/lib -lEZ -L/usr/X11R6/lib -lX11 -lXext -lm -lc
|
|
|
|
-STATICLIBS = libfile.a /usr/local/lib/libEZ.a -L/usr/X11R6/lib -lX11 -lXext -lm -lc
|
|
|
|
+LIBS = libfile.a -lEZ -ljpeg -L$(LOCALBASE)/lib -L$(X11BASE)/lib -lX11 -lXext -lm -lc
|
|
|
|
+STATICLIBS = libfile.a $(LOCALBASE)/lib/libEZ.a -L$(X11BASE)/lib -lX11 -lXext -lm -lc
|
1998-08-10 00:28:06 +00:00
|
|
|
|
|
|
|
SRC= action.c folder.c atoms.c clientMessage.c main.c icons.c items.c finfo.c \
|
1999-03-24 17:46:35 +00:00
|
|
|
signal.c info.c infoBtn.c printer.c misc.c mbtnFile.c mbtnView.c mbtnHelp.c popup.c\
|
|
|
|
@@ -45,10 +58,10 @@
|
|
|
|
all: ezfm ezfmMagic
|
|
|
|
|
|
|
|
ezfm: libfile.a $(OBJECTS)
|
|
|
|
- $(CC) $(CFLAG) -o ezfm $(OBJECTS) $(LIBS) $(JPEG_LIB)
|
|
|
|
+ $(CC) $(CFLAGS) -o ezfm $(OBJECTS) $(LIBS) $(JPEG_LIB)
|
|
|
|
|
|
|
|
ezfm-static: libfile.a $(OBJECTS)
|
|
|
|
- $(CC) $(CFLAG) -o ezfm $(OBJECTS) $(STATICLIBS) $(JPEG_LIB)
|
|
|
|
+ $(CC) $(CFLAGS) -o ezfm $(OBJECTS) $(STATICLIBS) $(JPEG_LIB)
|
|
|
|
|
|
|
|
|
|
|
|
install: ezfm ezfmMagic ezfmExtension ezfmrc ezfmIcons
|
|
|
|
@@ -62,7 +75,7 @@
|
1998-08-10 00:28:06 +00:00
|
|
|
cp ezfm $(BIN)
|
|
|
|
|
|
|
|
libfile.a:
|
|
|
|
- (cd libfile; make libfile.a CC="gcc -O"; mv libfile.a ../ )
|
|
|
|
+ (cd libfile; make libfile.a; mv libfile.a ../ )
|
1999-03-24 17:46:35 +00:00
|
|
|
- ranlib libfile.a
|
1998-08-10 00:28:06 +00:00
|
|
|
|
|
|
|
ezfmMagic:
|
1999-03-24 17:46:35 +00:00
|
|
|
@@ -79,13 +92,13 @@
|
|
|
|
$(RM) $(OBJECTS) ezfm
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
- $(CC) $(CFLAG) -c $<
|
|
|
|
+ $(CC) $(CFLAGS) -c $<
|
|
|
|
|
|
|
|
.o:
|
|
|
|
$(CC) $< -o $@ $(LIBS) $(JPEG_LIB)
|
|
|
|
|
|
|
|
.c:
|
|
|
|
- $(CC) $(CFLAG) $< -o $@ $(LIBS) $(JPEG_LIB)
|
|
|
|
+ $(CC) $(CFLAGS) $< -o $@ $(LIBS) $(JPEG_LIB)
|
|
|
|
|
|
|
|
#
|
|
|
|
# That's all folks,
|