3e4ed01146
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav)
54 lines
1.3 KiB
Text
54 lines
1.3 KiB
Text
--- Makefile.orig Sat Mar 22 02:59:07 2003
|
|
+++ Makefile Fri Apr 11 12:50:48 2003
|
|
@@ -1,38 +1,17 @@
|
|
-#Makefile
|
|
+CC ?= cc
|
|
+LDIR = -L${LOCALBASE}/lib
|
|
+IDIR = -I${LOCALBASE}/include
|
|
|
|
-PROG=wmmemfree
|
|
-OBJS=dockapp.o draw.o mem_linux.o options.o wmmemfree.o
|
|
+LIBS = -lX11 -lXpm -lXext -lkvm
|
|
|
|
-PREFIX=/usr/local
|
|
-BINDIR=$(PREFIX)/bin
|
|
-MANUALDIR=$(PREFIX)/share/man/man1
|
|
-CC=gcc
|
|
-STRIP=strip
|
|
-FLAGS=-Wall -O2
|
|
-RM=rm -f
|
|
-INST=install
|
|
-MANUAL=$(PROG).1
|
|
-LIBS=-L/usr/X11R6/lib -lX11 -lXext -lXpm
|
|
+OBJS = dockapp.o\
|
|
+ draw.o\
|
|
+ mem_freebsd.o\
|
|
+ options.o\
|
|
+ wmmemfree.o
|
|
|
|
-all: $(PROG)
|
|
+.c.o:
|
|
+ ${CC} ${CFLAGS} ${IDIR} ${DEFS} -c $< -o $*.o
|
|
|
|
-$(PROG): $(OBJS)
|
|
- $(CC) -o $(PROG) $(OBJS) $(LIBS)
|
|
- $(STRIP) $(PROG)
|
|
-%.o: %.c
|
|
- $(CC) $(FLAGS) -c $< -o $@
|
|
-clean:
|
|
- $(RM) $(OBJS) $(PROG)
|
|
-install: $(PROG)
|
|
- $(INST) -m 755 $(PROG) $(BINDIR)
|
|
- $(INST) -m 644 $(MANUAL) $(MANUALDIR)
|
|
-uninstall:
|
|
- $(RM) $(BINDIR)/$(PROG)
|
|
- $(RM) $(MANUALDIR)/$(MANUAL)
|
|
-
|
|
-dockapp.o: dockapp.c wmmemfree.h options.h draw.h xpm/bg.xpm xpm/on.xpm \
|
|
- xpm/off.xpm xpm/numbers.xpm xpm/panel.xpm
|
|
-draw.o: draw.c dockapp.h draw.h mem_linux.h options.h
|
|
-mem_linux.o: mem_linux.c
|
|
-options.o: options.c wmmemfree.h options.h
|
|
-wmmemfree.o: wmmemfree.c wmmemfree.h dockapp.h draw.h options.h
|
|
+all: ${OBJS}
|
|
+ ${CC} ${CFLAGS} -o wmmemfree ${OBJS} ${LDIR} ${LIBS}
|