diff options
author | mutantturkey <mutantturke@gmail.com> | 2012-06-14 23:36:25 -0400 |
---|---|---|
committer | mutantturkey <mutantturke@gmail.com> | 2012-06-14 23:36:25 -0400 |
commit | 68eed608949b3b2ecb3d87a72886ae917ff7bc0f (patch) | |
tree | d38f017864be9df1bef9d8101ae2667e3bcf6e7c /fly-tools | |
parent | 689957f1725f38e2ecb7b5d2f8085e60317b958c (diff) |
initial makefile for fly-tools, still broken
Diffstat (limited to 'fly-tools')
-rw-r--r-- | fly-tools/Makefile | 51 | ||||
-rw-r--r-- | fly-tools/README | 0 | ||||
-rw-r--r-- | fly-tools/config.mk | 23 | ||||
-rw-r--r-- | fly-tools/misc/FurthestPointAlongMajorAxis.cpp (renamed from fly-tools/FurthestPointAlongMajorAxis.cpp) | 0 |
4 files changed, 74 insertions, 0 deletions
diff --git a/fly-tools/Makefile b/fly-tools/Makefile new file mode 100644 index 0000000..94b0636 --- /dev/null +++ b/fly-tools/Makefile @@ -0,0 +1,51 @@ +include config.mk + +SRC = FlyObject.cpp FlyTrackingFilter.cpp FrameInfo.cpp FlyTrackingMain.cpp +OBJ = ${SRC:.c=.o} + +all: options FilterFlyMask FlyTracking + +options: + @echo fly-tools build options: + @echo "CFLAGS = ${CFLAGS}" + @echo "LDFLAGS = ${LDFLAGS}" + @echo "CC = ${CC}" + @echo "SRC = ${SRC}" +.c.o: + @echo CC $< + @${CC} -c ${CFLAGS} $< + +${OBJ}: config.mk + +svte: ${OBJ} + @echo CC -o $@ + @${CC} -o $@ svte.o ${LDFLAGS} + +FlyTracking: ${OBJ} + @echo CC -o $@ + @${CC} -o $@ FlyTracking.o ${LDFLAGS} + +clean: + @echo cleaning + @rm -f FlyTracking FilterFlyMask ${OBJ} fly-${VERSION}.tar.gz + +dist: clean + @echo creating dist tarball + @mkdir -p fly-${VERSION} + @cp -R Makefile config.mk ${SRC} svte-${VERSION} + @tar -cf svte-${VERSION}.tar mt-${VERSION} + @gzip svte-${VERSION}.tar + @rm -rf svte-${VERSION} + +install: all + @echo installing executable file to ${DESTDIR}${PREFIX}/bin + @mkdir -p ${DESTDIR}${PREFIX}/bin + @cp -f svte ${DESTDIR}${PREFIX}/bin + @chmod 755 ${DESTDIR}${PREFIX}/bin/svte + +uninstall: + @echo removing executable file from ${DESTDIR}${PREFIX}/bin + @rm -f ${DESTDIR}${PREFIX}/bin/svte + + +.PHONY: all options clean dist install uninstall diff --git a/fly-tools/README b/fly-tools/README new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/fly-tools/README diff --git a/fly-tools/config.mk b/fly-tools/config.mk new file mode 100644 index 0000000..e41bf88 --- /dev/null +++ b/fly-tools/config.mk @@ -0,0 +1,23 @@ +VERSION = 0.0.1 + +# Customize below to fit your system + +# paths +PREFIX = /usr +MANPREFIX = ${PREFIX}/share/man + + +# includes and libs + +GTKINC=$(shell pkg-config --cflags gtk+-2.0 vte ) +GTKLIB=$(shell pkg-config --libs gtk+-2.0 vte ) + +INCS = -I. -I/usr/include $(pkg-config --cflags Magick++ gsl) +LIBS = -L/usr/lib -lc $(pkg-config --libs Magick++ gsl) +# flags +CPPFLAGS = -DVERSION=\"${VERSION}\" +CFLAGS = -mtune=native -std=gnu99 -O2 -s ${INCS} ${CPPFLAGS} +LDFLAGS = -s ${LIBS} + +# compiler and linker +CC = g++ diff --git a/fly-tools/FurthestPointAlongMajorAxis.cpp b/fly-tools/misc/FurthestPointAlongMajorAxis.cpp index 8c8a086..8c8a086 100644 --- a/fly-tools/FurthestPointAlongMajorAxis.cpp +++ b/fly-tools/misc/FurthestPointAlongMajorAxis.cpp |