| version 1.11, 2003/08/12 17:20:54 |
version 1.12, 2003/08/12 20:51:00 |
|
|
| # |
# |
| # $Platon: games/mines/Makefile,v 1.10 2003/07/31 13:24:24 nepto Exp $ |
# $Platon: games/mines/Makefile,v 1.11 2003/08/12 17:20:54 nepto Exp $ |
| # |
# |
| |
|
| PACKAGE = mines |
PACKAGE = mines |
| Line 40 SVGALIB_COMPILE = $(CC) $(SVGALIB_DEFS) |
|
| Line 40 SVGALIB_COMPILE = $(CC) $(SVGALIB_DEFS) |
|
| SVGALIB_CCLD = $(CC) |
SVGALIB_CCLD = $(CC) |
| SVGALIB_LINK = $(SVGALIB_CCLD) $(CFLAGS) $(LDFLAGS) -o $@ |
SVGALIB_LINK = $(SVGALIB_CCLD) $(CFLAGS) $(LDFLAGS) -o $@ |
| |
|
| X11_DEFS = -DPLATON_SYSTEM_X11 -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(VERSION)-x11"' |
X11_DEFS = -DPLATON_SYSTEM_X11 -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(VERSION)-x11"' |
| X11_LIBS = -L/usr/X11R6/lib -lX11 |
X11_LIBS = -L/usr/X11R6/lib -lX11 -lpthread |
| X11_COMPILE = $(CC) $(X11_DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
X11_COMPILE = $(CC) $(X11_DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
| X11_CCLD = $(CC) |
X11_CCLD = $(CC) |
| X11_LINK = $(X11_CCLD) $(CFLAGS) $(LDFLAGS) -o $@ |
X11_LINK = $(X11_CCLD) $(CFLAGS) $(LDFLAGS) -o $@ |
| |
|
| # }}} Programs |
# }}} Programs |
| |
|
| |
|
| SVGALIB_OBJECTS = hiscore.o mines.o dos2linux.o my-graph.o mouse.o standart.o menu.o |
SVGALIB_OBJECTS = hiscore.o mines.o dos2linux.o my-graph.o mouse.o standart.o menu.o |
| X11_OBJECTS = hiscore.xo mines.xo dos2linux.xo my-graph.xo mouse.xo standart.xo menu.xo x11-graph.xo |
X11_OBJECTS = hiscore.xo mines.xo dos2linux.xo my-graph.xo mouse.xo standart.xo menu.xo x11-bgi.xo |
| |
|
| prefix = /usr/local |
prefix = /usr/local |
| bindir = $(prefix)/games |
bindir = $(prefix)/games |
| Line 164 menu.o: _shared/menu.c _shared/menu.h |
|
| Line 163 menu.o: _shared/menu.c _shared/menu.h |
|
| # x11 target objects |
# x11 target objects |
| # |
# |
| |
|
| |
hiscore.xo: hiscore.c hiscore.h |
| |
$(X11_COMPILE) -c hiscore.c -o hiscore.xo |
| |
|
| |
mines.xo: mines.c |
| |
$(X11_COMPILE) -c mines.c -o mines.xo |
| |
|
| |
x11-bgi.xo: _shared/x11-bgi.c _shared/x11-bgi.h |
| |
$(X11_COMPILE) -c _shared/x11-bgi.c -o x11-bgi.xo |
| |
|
| |
dos2linux.xo: _shared/dos2linux.c _shared/dos2linux.h |
| |
$(X11_COMPILE) -c _shared/dos2linux.c -o dos2linux.xo |
| |
|
| |
my-graph.xo: _shared/my-graph.c _shared/my-graph.h |
| |
$(X11_COMPILE) -c _shared/my-graph.c -o my-graph.xo |
| |
|
| |
mouse.xo: _shared/mouse-x11.c _shared/mouse.h |
| |
$(X11_COMPILE) -c _shared/mouse-x11.c -o mouse.xo |
| |
|
| |
standart.xo: _shared/stshared.c _shared/standart-linux.c _shared/standart.h |
| |
$(X11_COMPILE) -c _shared/standart-linux.c -o standart.xo |
| |
|
| |
menu.xo: _shared/menu.c _shared/menu.h |
| |
$(X11_COMPILE) -c _shared/menu.c -o menu.xo |
| |
|
| # Distribution targets {{{ |
# Distribution targets {{{ |
| dist: unix-shared-test distdir |
dist: unix-shared-test distdir |
| GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |