File: Makefile.std

package info (click to toggle)
xcb 2.4-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 312 kB
  • sloc: ansic: 4,121; makefile: 16
file content (57 lines) | stat: -rw-r--r-- 1,293 bytes parent folder | download | duplicates (6)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
# $Header: /cvsroot/xcb/Makefile.std,v 1.1 2002/10/10 10:07:02 root Exp $

CPP	=	/lib/cpp
INCS	=
HDRS	=	cb.h patchlevel.h
SRCS	=	xcb.c
OBJS	=	xcb.o
MISC	=	README Changes xcb.man Xcb.ad.base Imakefile Makefile.std
DISTN	=	$(MISC) $(SRCS) $(HDRS)

# Add your favourite compiler flags here, and select either the
# Athena or Motif GUI interface.
#
CFLAGS	=	$(INCS) -O $(GUI) # -DXVIEW
LDFLAGS =	
GUI	=	-DATHENA
#GUI	=	-DMOTIF

# These are the libraries required for linking.  Select one.
#
LIBS	=	-lXaw -lXt -lXext -lX11		# Athena libraries
#LIBS	=	-lXm -lXt -lX11			# Motif libraries

all:	xcb

xcb:	$(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

Xcb.ad:	Xcb.ad.base
	$(CPP) -P Xcb.ad.base $(GUI) > $@          # -P removes line directives.

# You will need to check and possibly adjust the target
# directories for these install rules.
#
install: xcb Xcb.ad
	install -c xcb /usr/bin/X11
	install -c -m 0644 -o bin -g bin Xcb.ad /usr/lib/X11/app-defaults/Xcb

install.man:
	install -c -m 0644 -o bin -g bin xcb.man /usr/share/man/mrd/man1/xcb.1

clean clobber:
	rm -f *.o xcb

tags ctags:	$(HDRS) $(SRCS)
	ctags -tw $(HDRS) $(SRCS)

shar:
	shar -c -f part -p -x X $(DISTN)

tar:
	mkdir xcb-2.4
	cp $(DISTN) xcb-2.4
	tar -cf xcb-2.4.tar xcb-2.4
	gzip -9 xcb-2.4.tar
	rm -rf xcb-2.4