diff options
author | Your Name <you@example.com> | 2024-05-08 10:00:44 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2024-05-08 10:00:44 -0400 |
commit | 5c57d8636f87efedd0d68c2afb8aa99a961a6c8b (patch) | |
tree | 3a63787281a5cd2db8e28e1422738976acdd9eb8 /configure | |
parent | 9ac821480ce9f2d88cbbb9363867760507522ebc (diff) | |
download | annotator-5c57d8636f87efedd0d68c2afb8aa99a961a6c8b.tar.gz annotator-5c57d8636f87efedd0d68c2afb8aa99a961a6c8b.tar.bz2 annotator-5c57d8636f87efedd0d68c2afb8aa99a961a6c8b.zip |
Switched makefile format
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/configure b/configure deleted file mode 100755 index d4c3daa..0000000 --- a/configure +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/bash - -# These are the project-specific variables - -EXECUTABLE="annotator" - -# e.g., foo.so -LIBRARY= - -# List of libs as given to pkg-config -LIBS="libconfuse opencv4" - -CFLAGS="-c -Wall -fPIC -std=c++20 -Wno-deprecated-enum-enum-conversion" - -LDFLAGS= - -SOURCE_DIR="src" - -EXTRAS= - -INSTALL=" -install: \$(EXECUTABLE) - install -d \$(DESTDIR)\$(PREFIX)/bin/ - install -m 755 \$(EXECUTABLE) \$(DESTDIR)\$(PREFIX)/bin/ -" - -# Below here shouldn't need editing - -SOURCES=`ls $SOURCE_DIR/*.cc | tr '\n' ' '` - -PKG_CONFIG_CFLAGS= -PKG_CONFIG_LIBS= -if [ -n "$LIBS" ]; then - PKG_CONFIG_CFLAGS='`pkg-config $(LIBS) --cflags`' - PKG_CONFIG_LIBS='`pkg-config $(LIBS) --libs`' -fi - -ALL="all: \$(SOURCES)" - -LIBRULE= -if [ -n "$LIBRARY" ]; then - LIBRULE=" -\$(LIBRARY): \$(OBJECTS) - \$(CC) \$(OBJECTS) -shared -o \$@ \$(LDFLAGS) $PKG_CONFIG_LIBS -" - ALL="$ALL \$(LIBRARY)" -fi - -EXERULE= -if [ -n "$EXECUTABLE" ]; then - EXERULE=" -\$(EXECUTABLE): \$(OBJECTS) - \$(CC) \$(OBJECTS) -o \$@ \$(LDFLAGS) $PKG_CONFIG_LIBS -" - ALL="$ALL \$(EXECUTABLE)" -fi - -ORULES=$(for cc in `ls $SOURCE_DIR/*.cc`; do g++ -MM -MT `cut -d'.' -f-1 <<< $cc`.o $cc; echo -e "\t"'$(CC) $(CFLAGS) $< -o $@ '"$PKG_CONFIG_CFLAGS\n"; done) - -cat << EOF > Makefile -CC=g++ -LIBS=$LIBS -CFLAGS=$CFLAGS -LDFLAGS=$LDFLAGS -SOURCES=$SOURCES -OBJECTS=\$(SOURCES:.cc=.o) -LIBRARY=$LIBRARY -EXECUTABLE=$EXECUTABLE -ifeq (\$(PREFIX),) - PREFIX := /usr -endif - -$ALL -$EXTRAS$INSTALL$LIBRULE$EXERULE - -$ORULES - -clean: - rm -f $SOURCE_DIR/*.o \$(LIBRARY) \$(EXECUTABLE) -EOF |