summaryrefslogtreecommitdiff
path: root/setedit/holidays/Makefile.in
blob: c592d1a27bca6f5020e42c904d2064bde775c61c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
CC=@CC@
CFLAGS=@CFLAGS@
dyndir=@dyndir@
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