]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/hwinfo/src/Makefile
Kleiner netter neuer Versuch.
[people/pmueller/ipfire-2.x.git] / src / hwinfo / src / Makefile
1 TOPDIR = ..
2 SUBDIRS = hd isdn ids
3 TARGETS = touch $(LIBHD) $(LIBHD_SO)
4 CLEANFILES = $(LIBHD) $(LIBHD_D) $(LIBHD_SO) *.so *.so.* *.a
5
6 .PHONY: touch
7
8 include $(TOPDIR)/Makefile.common
9
10 ifneq "$(findstring $(ARCH), i386 x86_64 ia64)" ""
11 ifneq ($(LIBHD_BASE), libhd_tiny)
12 SUBDIRS += x86emu int10
13 endif
14 endif
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
24 ifdef 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
31 else
32 $(LIBHD_SO):
33 endif
34
35 subdirs: touch
36
37 touch:
38 @touch -r $(LIBHD) $(LIBHD_D) 2>/dev/null || true