1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
# type either "make linux", "make win32", or "make os2" to compile
help:
@echo You can use this Makefile in the following ways:
@echo make linux ............ Make Linux binaries
@echo make win32 ............ Make Win32 binaries
@echo make osx .............. Make OS/X binaries
@echo make os2 .............. Make OS/2 binaries
@echo make cleanlinux ....... Remove object files under Linux
@echo make cleanwin32 ....... Remove object files under Win32
@echo make cleanosx ......... Remove object files under OS/X
@echo make cleanos2 ......... Remove object files under OS/2
@echo make tests ............ Run Tests (requires /bin/sh)
linux :
mkdir -p bin
make -C src -f Makefile linux
win32 :
make -C src -f Makefile win32
osx :
make -C src -f Makefile osx
os2 :
make -C src -f Makefile os2
cleanlinux :
rm -rf bin
make -C src -f Makefile cleanlinux
cleanwin32 :
make -C src -f Makefile cleanwin32
cleanosx :
make -C src -f Makefile cleanosx
cleanos2 :
make -C src -f Makefile cleanos2
.PHONY: tests
tests: linux
make -C tests
|