comparison libdha/Makefile @ 7824:ef5f2f54c231

really fix latest fix. But now this versioning stopped making sense to me.
author eyck
date Mon, 21 Oct 2002 14:23:19 +0000
parents 29a006405a5f
children ace211f1ed2b
comparison
equal deleted inserted replaced
7823:d1e2126cc353 7824:ef5f2f54c231
10 ifeq ($(TARGET_OS),CYGWIN) 10 ifeq ($(TARGET_OS),CYGWIN)
11 SHORTNAME = libdha.dll 11 SHORTNAME = libdha.dll
12 else 12 else
13 SHORTNAME = libdha.so.$(MAJOR_VERSION) 13 SHORTNAME = libdha.so.$(MAJOR_VERSION)
14 SONAME_FLAGS = -Wl,-soname,$(SHORTNAME) 14 SONAME_FLAGS = -Wl,-soname,$(SHORTNAME)
15 #SHORTNAME = libdha.so
16 VSHORTNAME = libdha.so
15 endif 17 endif
16 LIBNAME = libdha.so.$(VERSION) 18 LIBNAME = libdha.so.$(VERSION)
17 19
18 SRCS=libdha.c mtrr.c pci.c pci_names.c 20 SRCS=libdha.c mtrr.c pci.c pci_names.c
19 OBJS=$(SRCS:.c=.o) 21 OBJS=$(SRCS:.c=.o)
35 37
36 $(LIBNAME): $(OBJS) 38 $(LIBNAME): $(OBJS)
37 #$(CC) -shared $(SONAME_FLAGS) -o $(LIBNAME) $(OBJS) $(LIBS) 39 #$(CC) -shared $(SONAME_FLAGS) -o $(LIBNAME) $(OBJS) $(LIBS)
38 $(CC) -shared -Wl,-soname -Wl,$(LIBNAME) -o $(LIBNAME) $(OBJS) $(LIBS) 40 $(CC) -shared -Wl,-soname -Wl,$(LIBNAME) -o $(LIBNAME) $(OBJS) $(LIBS)
39 ln -sf $(LIBNAME) $(SHORTNAME) 41 ln -sf $(LIBNAME) $(SHORTNAME)
42 ln -sf $(LIBNAME) $(VSHORTNAME)
40 43
41 all: $(LIBNAME) $(SHORTNAME) 44 all: $(LIBNAME) $(SHORTNAME)
42 45
43 pci_names.c: 46 pci_names.c:
44 $(AWK) -f pci_db2c.awk oth/pci.db 47 $(AWK) -f pci_db2c.awk oth/pci.db