summaryrefslogtreecommitdiffstats
path: root/test/plugin_lib/Makefile.in
blob: aecb36ef8c5acbe8e27fe30581decf83b1e86f7b (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
CFLAGS = -fPIC -g
CC = @CC@
SRCDIR = @srcdir@
TOP_SRCDIR = @top_srcdir@
TOP_BUILDDIR = @top_builddir@
MAJOR = 0
MINOR = 1
NAME1 = dynlib1
VERSION = $(MAJOR).$(MINOR)

# Include files in hdf5/src build/src directories for hdf5.h and H5pubconf.h
INCLUDES = -I$(TOP_SRCDIR)/src -I$(TOP_BUILDDIR)/src

lib: lib$(NAME1).so.$(VERSION)

$(NAME1).o: $(SRCDIR)/$(NAME1).c
	$(CC) $(CFLAGS) $(INCLUDES) -c $(SRCDIR)/$(NAME1).c

lib$(NAME1).so.$(VERSION): $(NAME1).o
	$(CC) -shared -Wl,-soname,lib$(NAME1).so.$(MAJOR) $^ -o $@

clean:
	$(RM) *.o *.so* Makefile

distclean:
	$(RM) *.o *.so* Makefile