diff options
author | axtloss <axtlos@getcryst.al> | 2024-07-14 17:44:20 +0200 |
---|---|---|
committer | axtloss <axtlos@getcryst.al> | 2024-07-14 17:44:20 +0200 |
commit | 58fbbbca5a1f6b94885ce47e46c28e1cd03583d7 (patch) | |
tree | a9c53614295d8a6733f356679c0b633c5ce48e7c /Makefile | |
parent | 1a4696492e3cd478080e438950a7664a68fefcd6 (diff) | |
download | extlib-58fbbbca5a1f6b94885ce47e46c28e1cd03583d7.tar.gz extlib-58fbbbca5a1f6b94885ce47e46c28e1cd03583d7.tar.bz2 |
move to autotools
Diffstat (limited to '')
-rw-r--r-- | Makefile | 43 | ||||
-rw-r--r-- | Makefile.am | 8 |
2 files changed, 8 insertions, 43 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 4934e3c..0000000 --- a/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -.POSIX: - -CC = cc -CFLAGS = -g -PREFIX = /usr - -TESTCFLAGS!=pkg-config --cflags extlib -TESTCFLAGS+=-g -fsanitize=undefined,address -TESTLDFLAGS!=pkg-config --libs extlib - -extlib: extlib.o extstring.o constraint_handler.o memset_s.o - $(CC) src/extlib.o src/extstring.o src/constraint_handler.o src/memset_s.o $(CFLAGS) -shared -fPIC -o libextlib.so - -extlib.pc: extlib.pc.in - sed 's|@prefix@|$(PREFIX)|g' extlib.pc.in > extlib.pc - sed 's|@libdir@|$(PREFIX)/lib|g' extlib.pc > extlib.pc.tmp - sed 's|@includedir@|$(PREFIX)/include|g' extlib.pc.tmp > extlib.pc - rm extlib.pc.tmp - -extlib.o: - $(CC) src/extlib.c $(CFLAGS) -c -fPIC -o src/extlib.o - -extstring.o: - $(CC) src/extstring.c $(CFLAGS) -c -fPIC -o src/extstring.o - -constraint_handler.o: - $(CC) src/constraint_handler.c $(CFLAGS) -c -fPIC -o src/constraint_handler.o - -memset_s.o: - $(CC) src/memset_s.c $(CFLAGS) -c -fPIC -o src/memset_s.o - -clean: - rm -r src/extlib.o src/exststring.o libextlib.so extlib.pc test - -install: extlib extlib.pc - install -Dm655 libextlib.so $(PREFIX)/lib/ - install -Dm655 src/extlib.h $(PREFIX)/include/ - install -Dm655 extlib.pc $(PREFIX)/share/pkgconfig/ - -test: FORCE - cd tests && make test - -FORCE: ; # PHONY is a non standard extension diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..45dfac9 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,8 @@ +test: FORCE + cd tests && make test + +FORCE: ; + + +SUBDIRS = src +ACLOCAL_AMFLAGS = -I m4 |