1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
# TWLOG MAKEFILE
BINDIR = /usr/local/bin
DATADIR = /usr/share/twlog
RESDIR = /usr/X11R6/lib/X11/app-defaults
CC = gcc -Wall
CFLAGS = -Wall -O3 -I /usr/X11R6/include
CFILES = twlog.c twlogWids.c twlogCB.c twlogDiags.c
HFILES = twlog.h twlog.xpm
OFILES = $(CFILES:.c=.o)
LIBDIR = -L/usr/X11R6/lib
LIBS = -lXm -lXt -lX11 -lXext -lXpm
INCLUDE = -I/usr/X11R6/include
MISC = Twlog twlogHelp makefile README twlog.xpm twlog*.lsm tags
SAVEFILES = $(CFILES) $(HFILES) $(MISC)
twlog: $(OFILES)
$(CC) $(CFLAGS) $(OFILES) -o $@ $(LIBDIR) $(LIBS) $(INCLUDE)
$(OFILES): $(HFILES)
clean:
rm -f core $(OFILES) *.BAK twlog
spotless: clean
rm -f twlog
backup:
cp $(SAVEFILES) savedir
install:
install -s twlog $(DESTDIR)/usr/X11R6/bin
install -m 0644 Twlog $(DESTDIR)/etc/X11/app-defaults
install -m 0644 twlog.xpm $(DESTDIR)/usr/X11R6/include/X11/pixmaps
install -m 0644 mini.twlog.xpm $(DESTDIR)/usr/X11R6/include/X11/pixmaps
install -m 0644 twlog.1x $(DESTDIR)/usr/X11R6/man/man1
install -m 0644 twlogHelp $(DESTDIR)/usr/share/twlog
|