]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/hwinfo/src/Makefile
Kleiner netter neuer Versuch.
[people/pmueller/ipfire-2.x.git] / src / hwinfo / src / Makefile
CommitLineData
a6316ce4
MT
1TOPDIR = ..
2SUBDIRS = hd isdn ids
3TARGETS = touch $(LIBHD) $(LIBHD_SO)
4CLEANFILES = $(LIBHD) $(LIBHD_D) $(LIBHD_SO) *.so *.so.* *.a
5
6.PHONY: touch
7
8include $(TOPDIR)/Makefile.common
9
10ifneq "$(findstring $(ARCH), i386 x86_64 ia64)" ""
11ifneq ($(LIBHD_BASE), libhd_tiny)
12SUBDIRS += x86emu int10
13endif
14endif
15
16#ifeq "$(findstring $(ARCH), i386 alpha)" ""
17#SUBDIRS := $(filter-out pnpdump, $(SUBDIRS))
18#endif
19
20$(LIBHD): $(OBJS)
21 ar r $@ $?
22 @rm -f $(LIBHD_D)
23
24ifdef SHARED_FLAGS
25$(LIBHD_SO): $(LIBHD)
26 $(CC) -shared $(SO_LIBS) -Wl,--whole-archive $(LIBHD) -Wl,--no-whole-archive \
27 -Wl,-soname=$(LIBHD_SONAME) \
28 -o $(LIBHD_SO)
29 ln -snf $(LIBHD_NAME) $(LIBHD_SONAME)
30 ln -snf $(LIBHD_SONAME) $(LIBHD_BASE).so
31else
32$(LIBHD_SO):
33endif
34
35subdirs: touch
36
37touch:
38 @touch -r $(LIBHD) $(LIBHD_D) 2>/dev/null || true