WORKINGDIR := bind/
-CFGDIRNAME := configs/
-SRCCFGDIR := ${CFGDIRNAME}
-DSTCFGDIR := ${WORKINGDIR}${CFGDIRNAME}
-
-CFGS := # := start
-CFGS += keys.cfg
-CFGS := $(addprefix ${DSTCFGDIR},${CFGS})
-
-SRCLIBSDIR := libs/
-DSTLIBSDIR := ${WORKINGDIR}
-
-LIBSTXT := # := start
-LIBSTXT += COPYING-SDL
-LIBSTXT += README-SDL
-LIBSTXT += VERSION-SDL
-LIBSTXT := $(addprefix ${DSTLIBSDIR},${LIBSTXT})
-
-LIBSCPY := # := start
-LIBSCPY += libSDL.so
-LIBSCPY := $(addprefix ${DSTLIBSDIR},${LIBSCPY})
-
-SRCTXTDIR :=
-DSTTXTDIR := ${WORKINGDIR}
-
-TXT := # := start
-TXT += COPYING
-TXT := $(addprefix ${DSTTXTDIR},${TXT})
-
-TARGETNAME := run_physics
+TARGETNAME := pglib.so
TARGETTMP := ${OBJSDIR}${TARGETNAME}
TARGET := ${WORKINGDIR}${TARGETNAME}
endif
.PHONY: all
-all: ${TARGET} ${CFGS} ${LIBSTXT} ${LIBSCPY} ${TXT}
+all: ${TARGET}
# cause the fancy $$ directory rules to work out
.SECONDEXPANSION:
${Q1}${PRNTFMT} "cp" "$@"
${Q2}cp $< $@
-# rule to copy the config files into the working directory
-${DSTCFGDIR}%: ${SRCCFGDIR}% | $$(dir $$@)
- ${Q1}${PRNTFMT} "cp" "$@"
- ${Q2}cp $< $@
-
-# rule to copy the library files into the working directory
-${DSTLIBSDIR}%: ${SRCLIBSDIR}% | $$(dir $$@)
- ${Q1}${PRNTFMT} "cp" "$@"
- ${Q2}cp $< $@
-
-# rule to copy the library files into the working directory
-${DSTTXTDIR}%: ${SRCTXTDIR}% | $$(dir $$@)
- ${Q1}${PRNTFMT} "cp" "$@"
- ${Q2}cp $< $@
-
# how to make a directory
${BLDDIRS}:
${Q1}${PRNTFMT} "mkdir" "$@"
gitcleanf:
${Q1}${PRNTFMT} "git clean" "forcing"
${Q2}git clean -fxd
-
-.PHONY: tar
-tar: physics.tar.bz2
-
-.PHONY: physics.tar.bz2
-physics.tar.bz2:
- @${PRNTFMT} "git archive" "Warning, archives HEAD not current"
- ${Q1}${PRNTFMT} "git archive" "physics.tar.bz2"
- ${Q2}git archive --prefix=physics/ HEAD | bzip2 > physics.tar.bz2
-
-.PHONY: run
-run: all
- cd ${WORKINGDIR}; ./${TARGETNAME}
-
-.PHONY: gdb
-gdb: all
- cd ${WORKINGDIR}; gdb ${TARGETNAME}
-
-.PHONY: cgdb
-cgdb: all
- cd ${WORKINGDIR}; cgdb ${TARGETNAME}
-
-.PHONY: val
-val: all
- cd ${WORKINGDIR}; valgrind ${VALFLAGS} ./${TARGETNAME}
-
-.PHONY: prof
-prof: run
cd ${WORKINGDIR}; gprof -b ${TARGETNAME} > prof
cd ${WORKINGDIR}; kprof -f prof
-MINGMAKEARGS := "LIBGL := -lopengl32 -lglu32" \
- "LIBSDL := `/usr/mingw32/bin/sdl-config --libs`" \
- "LIBSCPY := $(addprefix bin-mingw32/,SDL.dll)" \
- "CXXFLAGS := ${OPTFLAGS}" \
- "CXX := mingw32-g++" \
- "OBJSDIR := objs-mingw32/" \
- "WORKINGDIR := bin-mingw32/" \
- "TARGETNAME := run_physics.exe"
-
-.PHONY: mingw32
-mingw32:
- ${Q1}${PRNTFMT} "make" "mingw32"
- ${Q2}${MAKE} ${MINGMAKEARGS} cleanbin cleanobjs
- ${Q2}${MAKE} ${MINGMAKEARGS} all
-
-FINALMAKEARGS := "CXXFLAGS := ${OPTFLAGS}" \
- "OBJSDIR := objs/" \
- "WORKINGDIR := bin/"
-
-.PHONY: final
-final:
- ${Q1}${PRNTFMT} "make" "final"
- ${Q2}${MAKE} ${FINALMAKEARGS} cleanbin cleanobjs
- ${Q2}${MAKE} ${FINALMAKEARGS} all
-
-
-include ${DEPS}