| 1 |
root |
1.1 |
# |
| 2 |
|
|
# $Header: /tmp_mnt/home/fbm/src/X/contrib/xcb/RCS/Makefile.std,v 1.16 1994/10/17 08:15:10 fbm Exp $ |
| 3 |
|
|
|
| 4 |
|
|
CPP = /lib/cpp |
| 5 |
|
|
INCS = |
| 6 |
|
|
HDRS = cb.h patchlevel.h |
| 7 |
|
|
SRCS = xcb.c |
| 8 |
|
|
OBJS = xcb.o |
| 9 |
|
|
MISC = README CHANGES xcb.man Xcb.ad.base Imakefile Makefile.std |
| 10 |
|
|
DISTN = $(MISC) $(SRCS) $(HDRS) |
| 11 |
|
|
|
| 12 |
|
|
# Add your favourite compiler flags here, and select either the |
| 13 |
|
|
# Athena or Motif GUI interface. |
| 14 |
|
|
# |
| 15 |
|
|
CFLAGS = $(INCS) -O $(GUI) # -DXVIEW |
| 16 |
|
|
LDFLAGS = |
| 17 |
|
|
GUI = -DATHENA |
| 18 |
|
|
#GUI = -DMOTIF |
| 19 |
|
|
|
| 20 |
|
|
# These are the libraries required for linking. Select one. |
| 21 |
|
|
# |
| 22 |
|
|
LIBS = -lXaw -lXmu -lXt -lXext -lX11 # Athena libraries |
| 23 |
|
|
#LIBS = -lXm -lXt -lX11 # Motif libraries |
| 24 |
|
|
|
| 25 |
|
|
all: xcb |
| 26 |
|
|
|
| 27 |
|
|
xcb: $(OBJS) |
| 28 |
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) |
| 29 |
|
|
|
| 30 |
|
|
Xcb.ad: Xcb.ad.base |
| 31 |
|
|
$(CPP) -P Xcb.ad.base $(GUI) > $@ # -P removes line directives. |
| 32 |
|
|
|
| 33 |
|
|
# You will need to check and possibly adjust the target |
| 34 |
|
|
# directories for these install rules. |
| 35 |
|
|
# |
| 36 |
|
|
install: xcb Xcb.ad |
| 37 |
|
|
install -c xcb /usr/bin/X11 |
| 38 |
|
|
install -c -m 0644 -o bin -g bin Xcb.ad /usr/lib/X11/app-defaults/Xcb |
| 39 |
|
|
|
| 40 |
|
|
install.man: |
| 41 |
|
|
install -c -m 0644 -o bin -g bin xcb.man /usr/share/man/mrd/man1/xcb.1 |
| 42 |
|
|
|
| 43 |
|
|
clean clobber: |
| 44 |
|
|
rm -f *.o xcb |
| 45 |
|
|
|
| 46 |
|
|
tags ctags: $(HDRS) $(SRCS) |
| 47 |
|
|
ctags -tw $(HDRS) $(SRCS) |
| 48 |
|
|
|
| 49 |
|
|
shar: |
| 50 |
|
|
shar -c -f part -p -x X $(DISTN) |
| 51 |
|
|
|
| 52 |
|
|
tar: |
| 53 |
|
|
mkdir xcb-2.3 |
| 54 |
|
|
cp $(DISTN) xcb-2.3 |
| 55 |
|
|
tar -cf xcb-2.3.tar xcb-2.3 |
| 56 |
|
|
gzip -9 xcb-2.3.tar |
| 57 |
|
|
rm -rf xcb-2.3 |