BSD 4_3 release
[unix-history] / usr / contrib / X / uwm / Makefile
CommitLineData
95f51977
C
1#
2# $Header: Makefile,v 10.3 86/02/02 14:10:11 jg Exp $
3#
4
5#/***********************************************************************
6#* *
7#* Placed in the public domain by *
8#* Digital Equipment Corporation, Maynard, MA *
9#* *
10#* The information in this software is subject to change without *
11#* notice and should not be construed as a commitment by Digital *
12#* Equipment Corporation. Digital makes no representations *
13#* about suitability of this software for any purpose. It is *
14#* supplied "as is" without express or implied warranty. *
15#* *
16#************************************************************************/
17#
18#/*
19#* MODIFICATION HISTORY
20#*
21#* 000 -- M. Gancarz, DEC Ultrix Engineering Group
22#*/
23#
24# $Header: Makefile,v 10.3 86/02/02 14:10:11 jg Exp $
25#
26
27# SCCSID="@(#)Makefile 3.7 1/23/86"
28#
29# Makefile for 'uwm' window manager (client of X windowing system)
30#
31#
32
33DESTDIR=
34CONFDIR= /usr/new
35UWMDIR= /usr/new/lib/X/uwm
36INCLUDES= -I../include
37CURSORDIR= ../cursors
38CFLAGS= -O $(INCLUDES) -I$(CURSORDIR)
39YFLAGS= -d
40LLIB= -ll
41XLIB= ../Xlib/libX.a
42
43SRCS= gram.y lex.l globals.c Beep.c Bindings.c CircleDown.c CircleUp.c\
44 Focus.c GetButton.c Iconify.c Lower.c Menu.c Move.c\
45 MoveOpaque.c NewIconify.c Pause.c Push.c Error.c Raise.c Refresh.c\
46 Resize.c Restart.c StoreBox.c StoreGridBox.c StoreCursors.c StoreZap.c\
47 XError.c uwm.c
48
49OBJS= gram.o lex.o globals.o Beep.o Bindings.o CircleDown.o CircleUp.o\
50 Focus.o GetButton.o Iconify.o Lower.o Menu.o Move.o\
51 MoveOpaque.o NewIconify.o Pause.o Push.o Error.o Raise.o Refresh.o\
52 Resize.o Restart.o StoreBox.o StoreGridBox.o StoreCursors.o StoreZap.o\
53 XError.o uwm.o
54
55all: uwm
56
57uwm: $(OBJS)
58 $(CC) ${CFLAGS} $(OBJS) $(LLIB) ${XLIB} -o uwm
59
60install: uwm default.uwmrc menuless.uwmrc mono.uwmrc ${DESTDIR}${UWMDIR}
61 install -c -s -m 755 uwm ${DESTDIR}${CONFDIR}
62 install -c -m 644 default.uwmrc ${DESTDIR}${UWMDIR}/default.uwmrc
63 install -c -m 644 menuless.uwmrc ${DESTDIR}${UWMDIR}/menuless.uwmrc
64 install -c -m 644 mono.uwmrc ${DESTDIR}${UWMDIR}/mono.uwmrc
65 install -c -m 644 jg.uwmrc ${DESTDIR}${UWMDIR}/jg.uwmrc
66
67${DESTDIR}${UWMDIR}:
68 mkdir ${DESTDIR}${UWMDIR}
69 chmod 755 ${DESTDIR}${UWMDIR}
70
71$(OBJS): uwm.h
72
73lex.o: uwm.h lex.l
74
75StoreCursors.o: uwm.h\
76 $(CURSORDIR)/arrow_cross.cursor\
77 $(CURSORDIR)/arrow_cross_mask.cursor\
78 $(CURSORDIR)/xterm.cursor\
79 $(CURSORDIR)/xterm_mask.cursor\
80 $(CURSORDIR)/icon.cursor\
81 $(CURSORDIR)/icon_mask.cursor\
82 menu.cursor\
83 menu_mask.cursor\
84 leftbutton.cursor\
85 middlebutton.cursor\
86 rightbutton.cursor\
87 button_mask.cursor
88
89$(XLIB):
90 @echo "Cannot make the Ultrix Window Manager without a valid X library."
91
92clean:
93 -rm -f *.o lex.yy.c core y.output y.tab.h uwm *.bak *.sav tmp* \#* *~