summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-02-26 22:50:39 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-02-26 22:50:39 +0100
commit89c58dc04c264c5778ae34d1428e12483f3ac5ac (patch)
treed5aef506841b3b0e2e91016d0c0bbb608535873c /Makefile
parent10a77c7a1c4648693ded958d6ac8641afcdf1d34 (diff)
downloadcataract-89c58dc04c264c5778ae34d1428e12483f3ac5ac.tar.xz
Autotoolize
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile43
1 files changed, 0 insertions, 43 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 930e25d..0000000
--- a/Makefile
+++ /dev/null
@@ -1,43 +0,0 @@
-# path definitions
-INSTALLPREFIX = /usr
-INSTALL=/usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-
-# compiler options
-CC = gcc
-CPP = g++
-CFLAGS = -I. -I/usr/include -Wall -fPIC -g \
- -D__DEBUG__ -D__DEBUG_ALL__x
-
-OBJECTS=gallery-utils.o jpeg-utils.o xml-parser.o setup.o items.o generators.o generators-replace-table.o cgg.o
-
-EXIV2_CFLAGS_EXTRA=`pkg-config --max-version=0.17.1 exiv2 || echo -D_EXIV2_NEW_API`
-
-.SUFFIXES: .c .cpp
-.c.o:
- $(CC) $(CFLAGS) `pkg-config libxml-2.0 glib-2.0 --cflags` `Wand-config --cflags` $(EXIV2_CFLAGS_EXTRA) -c $<
-.cpp.o:
- $(CPP) $(CFLAGS) `pkg-config libxml-2.0 glib-2.0 exiv2 --cflags` `Wand-config --cppflags` $(EXIV2_CFLAGS_EXTRA) -c $<
-
-all cgg: check $(OBJECTS)
- $(CC) -o cgg $(OBJECTS) -lm $(CFLAGS) `pkg-config libxml-2.0 glib-2.0 exiv2 --libs` `Wand-config --ldflags --libs`
-
-cgg.o: cgg.c
-jpeg-utils.o: jpeg-utils.cpp jpeg-utils.h
-gallery-utils.o: gallery-utils.c gallery-utils.h
-setup.o: setup.c setup.h
-xml-parser.o: xml-parser.c xml-parser.h
-items.o: items.c items.h
-generators.o: generators.c generators.h
-generators-replace-table.o: generators-replace-table.c generators-replace-table.h
-
-check::
- @pkg-config --cflags libxml-2.0 glib-2.0 exiv2 > /dev/null || exit 1
- @Wand-config --cflags > /dev/null || exit 1
-
-install::
- $(INSTALL) ./cgg $(INSTALLPREFIX)/bin
-
-clean:
- rm -f *.o *.d cgg
-