wok-next view xpat2/stuff/Makefile @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents
children
line source
1 PREFIX = /usr
2 CFLAGS = -DuseXaw -DONLINE_HELP -DSOUND -DGFX2
3 CFLAGS += -DLIBDIR=\"/usr/share/xpat2\"
4 CFLAGS += -DSCOREFILE=\"/var/games/xpat2/xpat.log\"
5 LDFLAGS = -lX11 -lXaw
7 STDOBJS = rules.o commands.o messages.o hints.o layout.o \
8 arrows.o loadsave.o util.o moves.o \
9 r_Klondike.o r_Spider.o r_Delight.o r_MonteCarlo.o \
10 r_Midnight.o r_Gypsy.o r_Seahaven.o r_FreeCell.o \
11 r_Calculatio.o r_Michaels.o r_Royal.o r_Canfield.o \
12 r_mdCanfield.o r_Bakers.o r_Oonsoo.o r_BlueMoon.o
14 XOBJS = X-events.o X-layout.o X-expose.o X-cards.o \
15 X-markcard.o X-arrows.o X-widget.o $(GFXOBJ) \
16 Xaw-help.o Xaw-main.o X-sound_SUN.o X-gfx2.o
18 OBJS = $(STDOBJS) $(XOBJS)
20 MYPROG = xpat2
22 all: $(MYPROG)
24 $(MYPROG): $(OBJS)
25 gcc -o $(MYPROG) $(LDFLAGS) $(OBJS)
27 install:
28 install -d $(DESTDIR)$(PREFIX)/bin
29 install -m 755 xpat2 $(DESTDIR)$(PREFIX)/bin
30 install -d $(DESTDIR)$(PREFIX)/share/xpat2/default
31 install -m 644 ../lib/help* ../lib/hlp* ../lib/keys $(DESTDIR)$(PREFIX)/share/xpat2
32 install -m 644 ../lib/default/* $(DESTDIR)$(PREFIX)/share/xpat2/default
34 clean:
35 rm $(MYPROG) *.o