2000-05-28 03:23:12 +00:00
|
|
|
--- Makefile.orig Thu Jul 15 00:31:35 1999
|
|
|
|
+++ Makefile Sat May 27 14:40:42 2000
|
|
|
|
@@ -2,7 +2,10 @@
|
1999-03-24 17:46:35 +00:00
|
|
|
#
|
2000-05-28 03:23:12 +00:00
|
|
|
# Where to install ezfm files
|
1998-08-10 00:28:06 +00:00
|
|
|
#
|
1999-03-24 17:46:35 +00:00
|
|
|
-DEST_DIR=/usr/local
|
|
|
|
+LOCALBASE?=/usr/local
|
2000-05-28 03:23:12 +00:00
|
|
|
+X11BASE?=/usr/X11R6
|
|
|
|
+PREFIX?=${LOCALBASE}
|
|
|
|
+DEST_DIR=${PREFIX}
|
1998-08-10 00:28:06 +00:00
|
|
|
#
|
|
|
|
#
|
2000-05-28 03:23:12 +00:00
|
|
|
EZFM_MAGIC=$(DEST_DIR)/lib/ezfm/ezfmMagic
|
|
|
|
@@ -25,12 +28,13 @@
|
1998-08-10 00:28:06 +00:00
|
|
|
#
|
|
|
|
#----------------------------------------------------------------------------------
|
|
|
|
#
|
2000-05-28 03:23:12 +00:00
|
|
|
-CC= gcc -g -DLINUX -I../include
|
|
|
|
+CC?= gcc -g -DLINUX -I../include
|
1999-03-24 17:46:35 +00:00
|
|
|
+CFLAGS+= -I$(LOCALBASE)/include -I$(X11BASE)/include
|
|
|
|
|
1998-08-10 00:28:06 +00:00
|
|
|
#
|
|
|
|
#----------------------------------------------------------------------------------
|
2000-05-28 03:23:12 +00:00
|
|
|
-LIBS = libfile.a -L../EZWGL/lib -lEZ -L/usr/X11R6/lib -lX11 -lXext -ljpeg -ltiff -lpng -lz -lm -lc
|
1999-03-24 17:46:35 +00:00
|
|
|
-STATICLIBS = libfile.a /usr/local/lib/libEZ.a -L/usr/X11R6/lib -lX11 -lXext -lm -lc
|
2000-05-28 03:23:12 +00:00
|
|
|
+LIBS = libfile.a -L../EZWGL/lib -lEZ -L${LOCALBASE}/lib -L${X11BASE}/lib -lX11 -lXext -ljpeg -ltiff -lpng -lz -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\
|
2000-05-28 03:23:12 +00:00
|
|
|
@@ -45,10 +49,10 @@
|
1999-03-24 17:46:35 +00:00
|
|
|
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
|
2000-05-28 03:23:12 +00:00
|
|
|
@@ -62,7 +66,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:
|
2000-05-28 03:23:12 +00:00
|
|
|
@@ -79,13 +83,13 @@
|
1999-03-24 17:46:35 +00:00
|
|
|
$(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,
|