wok diff xpat2/stuff/Makefile @ rev 9065

cpufrequtils: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 04 13:31:15 2011 +0100 (2011-03-04)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpat2/stuff/Makefile	Fri Mar 04 13:31:15 2011 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +PREFIX          = /usr
     1.5 +CFLAGS          = -DuseXaw -DONLINE_HELP -DSOUND -DGFX2
     1.6 +CFLAGS         += -DLIBDIR=\"/usr/share/xpat2\"
     1.7 +CFLAGS         += -DSCOREFILE=\"/var/games/xpat2/xpat.log\"
     1.8 +LDFLAGS         = -lX11 -lXaw
     1.9 +
    1.10 +STDOBJS         = rules.o commands.o messages.o hints.o layout.o \
    1.11 +                  arrows.o loadsave.o util.o moves.o \
    1.12 +                  r_Klondike.o r_Spider.o r_Delight.o r_MonteCarlo.o \
    1.13 +                  r_Midnight.o r_Gypsy.o r_Seahaven.o r_FreeCell.o \
    1.14 +                  r_Calculatio.o r_Michaels.o r_Royal.o r_Canfield.o \
    1.15 +                  r_mdCanfield.o r_Bakers.o r_Oonsoo.o r_BlueMoon.o
    1.16 +
    1.17 +XOBJS		= X-events.o X-layout.o X-expose.o X-cards.o \
    1.18 +		  X-markcard.o X-arrows.o X-widget.o $(GFXOBJ) \
    1.19 +		  Xaw-help.o Xaw-main.o X-sound_SUN.o X-gfx2.o
    1.20 +
    1.21 +OBJS            = $(STDOBJS) $(XOBJS)
    1.22 +
    1.23 +MYPROG          = xpat2
    1.24 +
    1.25 +all: $(MYPROG)
    1.26 +
    1.27 +$(MYPROG): $(OBJS)
    1.28 +	gcc -o $(MYPROG) $(LDFLAGS) $(OBJS)
    1.29 +	
    1.30 +install:
    1.31 +	install -d $(DESTDIR)$(PREFIX)/bin
    1.32 +	install -m 755 xpat2 $(DESTDIR)$(PREFIX)/bin
    1.33 +	install -d $(DESTDIR)$(PREFIX)/share/xpat2/default
    1.34 +	install -m 644 ../lib/help* ../lib/hlp* ../lib/keys $(DESTDIR)$(PREFIX)/share/xpat2
    1.35 +	install -m 644 ../lib/default/* $(DESTDIR)$(PREFIX)/share/xpat2/default
    1.36 +
    1.37 +clean:
    1.38 +	rm $(MYPROG) *.o