Diff for games/mines/Makefile between version 1.2 and 1.3
| version 1.2, 2003/05/18 22:51:41 |
version 1.3, 2003/05/21 13:50:39 |
|
|
| PACKAGE = mines
|
PACKAGE = mines
|
| VERSION = 4.3
|
VERSION = 4.3
|
|
|
|
| # $Platon: games/mines/Makefile,v 1.1.1.1 2003/05/11 18:48:46 nepto Exp $
|
# $Platon: games/mines/Makefile,v 1.2 2003/05/18 22:51:41 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
|
|
|
| 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: $(OBJECTS)
|
linux: linux-shared-test $(OBJECTS)
|
| $(CC) $(CFLAGS) -o mines $(OBJECTS) $(LIBS)
|
$(CC) $(CFLAGS) -o mines $(OBJECTS) $(LIBS)
|
|
|
|
| linux-clean:
|
linux-clean:
|
| $(RM) mines $(OBJECTS)
|
$(RM) mines $(OBJECTS)
|
|
|
|
| |
linux-shared-test:
|
| |
@if test ! -d _shared; then \
|
| |
if test -d ../_shared; then \
|
| |
ln -s ../_shared _shared; \
|
| |
echo -n "warning: "; \
|
| |
echo "shared directory did not exist, thus it was symlinked"; \
|
| |
else \
|
| |
echo -n "error: "; \
|
| |
echo "shared directory does not exist and cannot be symlinked"; \
|
| |
exit 1; \
|
| |
fi; \
|
| |
fi
|
| |
|
| #install: all
|
#install: all
|
| # install -m 4755 -o root -g root -s mines $(bindir)
|
# install -m 4755 -o root -g root -s mines $(bindir)
|
|
|
|
Platon Group <platon@platon.org> http://platon.org/
|
|