| version 1.2, 2003/05/21 13:50:42 |
version 1.3, 2003/05/21 13:51:19 |
|
|
| PACKAGE = pexeso
|
PACKAGE = pexeso |
| VERSION = 4.3
|
VERSION = 4.3 |
|
|
|
| # $Platon: games/pexeso/Makefile,v 1.1.1.1 2003/05/11 18:48:46 nepto Exp $
|
# $Platon: games/pexeso/Makefile,v 1.2 2003/05/21 13:50:42 nepto Exp $ |
|
|
|
| CC = gcc
|
CC = gcc |
| CFLAGS = -ggdb -g -DPLATON_SYSTEM_LINUX -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(VERSION)-linux"' -I_shared -O3 -pedantic -Wall
|
CFLAGS = -ggdb -g -DPLATON_SYSTEM_LINUX -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(VERSION)-linux"' -I_shared -O3 -pedantic -Wall |
| OBJECTS = cursors.o data.o pexeso.o dos2linux.o my-graph.o mouse.o standart.o menu.o
|
OBJECTS = cursors.o data.o pexeso.o dos2linux.o my-graph.o mouse.o standart.o menu.o |
| LIBS = -lvgagl -lvga
|
LIBS = -lvgagl -lvga |
| RM = rm -f
|
RM = rm -f |
| prefix = /usr/local
|
prefix = /usr/local |
| bindir = $(prefix)/games
|
bindir = $(prefix)/games |
|
|
|
| all:
|
all: |
| @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 - linux: makes SVGAlib Linux binary |
| @echo - linux-clean: cleans Linux working files
|
@echo - linux-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)
|
linux: linux-shared-test $(OBJECTS) |
| $(CC) $(CFLAGS) -o pexeso $(OBJECTS) $(LIBS)
|
$(CC) $(CFLAGS) -o pexeso $(OBJECTS) $(LIBS) |
|
|
|
| linux-clean:
|
linux-clean: |
| $(RM) pexeso $(OBJECTS)
|
$(RM) pexeso $(OBJECTS) |
|
|
|
| linux-shared-test:
|
linux-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; \ |
| echo -n "warning: "; \
|
echo -n "warning: "; \ |
| echo "shared directory did not exist, thus it was symlinked"; \
|
echo "shared directory did not exist, thus it was symlinked"; \ |
| else \
|
else \ |
| echo -n "error: "; \
|
echo -n "error: "; \ |
| echo "shared directory does not exist and cannot be symlinked"; \
|
echo "shared directory does not exist and cannot be symlinked"; \ |
| exit 1; \
|
exit 1; \ |
| fi; \
|
fi; \ |
| fi
|
fi |
|
|
|
| #install: all
|
#install: all |
| # install -m 4755 -o root -g root -s pexeso $(bindir)
|
# install -m 4755 -o root -g root -s pexeso $(bindir) |
|
|
|
| cursors.o: cursors.c
|
cursors.o: cursors.c |
| $(CC) $(CFLAGS) -c cursors.c -o cursors.o
|
$(CC) $(CFLAGS) -c cursors.c -o cursors.o |
|
|
|
| data.o: data.c
|
data.o: data.c |
| $(CC) $(CFLAGS) -c data.c -o data.o
|
$(CC) $(CFLAGS) -c data.c -o data.o |
|
|
|
| pexeso.o: pexeso.c
|
pexeso.o: pexeso.c |
| $(CC) $(CFLAGS) -c pexeso.c -o pexeso.o
|
$(CC) $(CFLAGS) -c pexeso.c -o pexeso.o |
|
|
|
| dos2linux.o: _shared/dos2linux.c
|
dos2linux.o: _shared/dos2linux.c |
| $(CC) $(CFLAGS) -c _shared/dos2linux.c -o dos2linux.o
|
$(CC) $(CFLAGS) -c _shared/dos2linux.c -o dos2linux.o |
|
|
|
| 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-linux.c |
| $(CC) $(CFLAGS) -c _shared/mouse-linux.c -o mouse.o
|
$(CC) $(CFLAGS) -c _shared/mouse-linux.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 |
|
|
|
| menu.o: _shared/menu.c
|
menu.o: _shared/menu.c |
| $(CC) $(CFLAGS) -c _shared/menu.c -o menu.o
|
$(CC) $(CFLAGS) -c _shared/menu.c -o menu.o |
|
|
|