| version 1.4, 2003/05/21 13:51:18 |
version 1.5, 2003/06/22 18:40:34 |
|
|
| PACKAGE = mines |
PACKAGE = mines |
| VERSION = 4.3 |
VERSION = 4.3 |
| |
|
| # $Platon: games/mines/Makefile,v 1.3 2003/05/21 13:50:39 nepto Exp $ |
# $Platon: games/mines/Makefile,v 1.4 2003/05/21 13:51:18 nepto Exp $ |
| |
|
| CC = gcc |
CC = gcc |
| CFLAGS = -ggdb -g -DPLATON_SYSTEM_LINUX -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(VERSION)-linux"' -I_shared -O3 -pedantic -Wall |
CFLAGS = -DPLATON_SYSTEM_SVGALIB -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(VERSION)-svgalib"' -I_shared -O3 -pedantic -Wall |
| OBJECTS = hiscore.o mines.o dos2linux.o my-graph.o mouse.o standart.o menu.o |
OBJECTS = hiscore.o mines.o dos2linux.o my-graph.o mouse.o standart.o menu.o |
| LIBS = -lvgagl -lvga |
LIBS = -lvgagl -lvga |
| RM = rm -f |
RM = rm -f |
|
|
| @echo Available targets: |
@echo Available targets: |
| @echo - dos: makes MS-Dos executable |
@echo - dos: makes MS-Dos executable |
| @echo - dos-clean: cleans MS-Dos working files |
@echo - dos-clean: cleans MS-Dos working files |
| @echo - linux: makes SVGAlib Linux binary |
@echo - svgalib: makes SVGAlib Linux binary |
| @echo - linux-clean: cleans Linux working files |
@echo - svgalib-clean: cleans Linux working files |
| |
|
| dos: |
dos: |
| make -DPACKAGE="$(PACKAGE)" -DVERSION="$(VERSION)-msdos" -f Makefile.dos |
make -DPACKAGE="$(PACKAGE)" -DVERSION="$(VERSION)-msdos" -f Makefile.dos |
|
|
| dos-clean: |
dos-clean: |
| make -DPACKAGE="$(PACKAGE)" -DVERSION="$(VERSION)-msdos" -f Makefile.dos clean |
make -DPACKAGE="$(PACKAGE)" -DVERSION="$(VERSION)-msdos" -f Makefile.dos clean |
| |
|
| linux: linux-shared-test $(OBJECTS) |
svgalib: unix-shared-test $(OBJECTS) |
| $(CC) $(CFLAGS) -o mines $(OBJECTS) $(LIBS) |
$(CC) $(CFLAGS) -o mines $(OBJECTS) $(LIBS) |
| |
|
| linux-clean: |
svgalib-clean: |
| $(RM) mines $(OBJECTS) |
$(RM) mines $(OBJECTS) |
| |
|
| linux-shared-test: |
unix-shared-test: |
| @if test ! -d _shared; then \ |
@if test ! -d _shared; then \ |
| if test -d ../_shared; then \ |
if test -d ../_shared; then \ |
| ln -s ../_shared _shared; \ |
ln -s ../_shared _shared; \ |
| Line 58 dos2linux.o: _shared/dos2linux.c |
|
| Line 58 dos2linux.o: _shared/dos2linux.c |
|
| my-graph.o: _shared/my-graph.c |
my-graph.o: _shared/my-graph.c |
| $(CC) $(CFLAGS) -c _shared/my-graph.c -o my-graph.o |
$(CC) $(CFLAGS) -c _shared/my-graph.c -o my-graph.o |
| |
|
| mouse.o: _shared/mouse-linux.c |
mouse.o: _shared/mouse-svgalib.c |
| $(CC) $(CFLAGS) -c _shared/mouse-linux.c -o mouse.o |
$(CC) $(CFLAGS) -c _shared/mouse-svgalib.c -o mouse.o |
| |
|
| standart.o: _shared/standart-linux.c |
standart.o: _shared/standart-linux.c |
| $(CC) $(CFLAGS) -c _shared/standart-linux.c -o standart.o |
$(CC) $(CFLAGS) -c _shared/standart-linux.c -o standart.o |