diff options
Diffstat (limited to 'setedit/holidays/Makefile')
-rw-r--r-- | setedit/holidays/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/setedit/holidays/Makefile b/setedit/holidays/Makefile new file mode 100644 index 0000000..62de07a --- /dev/null +++ b/setedit/holidays/Makefile @@ -0,0 +1,26 @@ +CC=gcc +CFLAGS=-march=i686 -mtune=generic -O2 -pipe +dyndir=/usr/lib/setedit +dynversion=.1.0.0 + +LIBS=argentina datetools defholidays + +all: $(addsuffix .so,$(LIBS)) + +libs: $(addsuffix .so,$(LIBS)) + +%.o: %.c + $(CC) -c -fPIC $(CFLAGS) $< + +%.so: %.o + $(CC) -o $@ $< -shared -Wl,-soname,$(basename $@).so$(dynversion) + +%.ins: %.so + install -d $(dyndir) + -install $< $(dyndir)/$@ + +install: libs $(addsuffix .ins,$(LIBS)) + +clean: + rm -f *.o *.so + |