mirror of
https://github.com/SFML/SFML.git
synced 2025-01-31 21:55:13 +08:00
fc22927874
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1232 4e206d99-4929-0410-ac5d-dfc041789085
68 lines
1.8 KiB
Makefile
68 lines
1.8 KiB
Makefile
export DEBUGBUILD = no
|
|
export STATIC = no
|
|
|
|
ifeq ($(DEBUGBUILD), yes)
|
|
DEBUGFLAGS = -g -DDEBUG
|
|
else
|
|
DEBUGFLAGS = -O2 -DNDEBUG
|
|
endif
|
|
|
|
ifeq ($(STATIC), no)
|
|
BUILDFLAGS = -fPIC
|
|
LINKFLAGS = -shared
|
|
else
|
|
BUILDFLAGS =
|
|
LINKFLAGS =
|
|
endif
|
|
|
|
export CC = gcc
|
|
export CPP = g++
|
|
export CFLAGS = -W -Wall -pedantic -I../../../include -I../../ $(DEBUGFLAGS) $(BUILDFLAGS)
|
|
export CFLAGSEXT = -I../../../include -I../.. $(DEBUGFLAGS) $(BUILDFLAGS)
|
|
export LDFLAGS = $(LINKFLAGS)
|
|
export LIBPATH = ../../../lib
|
|
export VERSION = 2.0
|
|
export CP = cp
|
|
export LN = ln
|
|
export LNFLAGS = -s -f
|
|
export AR = ar
|
|
export ARFLAGS = rcs
|
|
export DESTDIR = /usr/local
|
|
export DESTLIBDIR = $(DESTDIR)/lib
|
|
export DESTINCDIR = $(DESTDIR)/include
|
|
|
|
all: sfml-system sfml-window sfml-network sfml-graphics sfml-audio
|
|
|
|
sfml-system:
|
|
@(mkdir -p ../../lib)
|
|
@(cd ./System && $(MAKE))
|
|
|
|
sfml-window:
|
|
@(mkdir -p ../../lib)
|
|
@(cd ./Window && $(MAKE))
|
|
|
|
sfml-network:
|
|
@(mkdir -p ../../lib)
|
|
@(cd ./Network && $(MAKE))
|
|
|
|
sfml-graphics:
|
|
@(mkdir -p ../../lib)
|
|
@(cd ./Graphics && $(MAKE))
|
|
|
|
sfml-audio:
|
|
@(mkdir -p ../../lib)
|
|
@(cd ./Audio && $(MAKE))
|
|
|
|
.PHONY: clean mrproper
|
|
|
|
clean:
|
|
@(cd ./System && $(MAKE) $@ && cd ../Window && $(MAKE) $@ && cd ../Network && $(MAKE) $@ && cd ../Graphics && $(MAKE) $@ && cd ../Audio && $(MAKE) $@)
|
|
|
|
mrproper: clean
|
|
@(cd ./System && $(MAKE) $@ && cd ../Window && $(MAKE) $@ && cd ../Network && $(MAKE) $@ && cd ../Graphics && $(MAKE) $@ && cd ../Audio && $(MAKE) $@)
|
|
|
|
install:
|
|
@(mkdir -p $(DESTLIBDIR))
|
|
@(mkdir -p $(DESTINCDIR))
|
|
@(cd ./System && $(MAKE) $@ && cd ../Window && $(MAKE) $@ && cd ../Network && $(MAKE) $@ && cd ../Graphics && $(MAKE) $@ && cd ../Audio && $(MAKE) $@ && $(CP) -r ../../../include/SFML/ $(DESTINCDIR)/)
|