Mercurial > mplayer.hg
comparison libdha/Makefile @ 12069:841fd0c2f2e3
fix compilation on cygwin
author | faust3 |
---|---|
date | Fri, 26 Mar 2004 12:15:54 +0000 |
parents | 38ce28265e5f |
children | 797e602bf1dd |
comparison
equal
deleted
inserted
replaced
12068:df423e2d71dc | 12069:841fd0c2f2e3 |
---|---|
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 | 15 #SHORTNAME = libdha.so |
16 VSHORTNAME = libdha.so | 16 VSHORTNAME = libdha.so |
17 endif | 17 endif |
18 ifeq ($(TARGET_MINGW32),yes) | 18 ifeq ($(TARGET_WIN32),yes) |
19 LIBNAME = libdha.a | 19 LIBNAME = libdha.a |
20 SHORTNAME = libdha.a | 20 SHORTNAME = libdha.a |
21 else | 21 else |
22 LIBNAME = libdha.so.$(VERSION) | 22 LIBNAME = libdha.so.$(VERSION) |
23 endif | 23 endif |
46 | 46 |
47 .c.o: pci_names.c | 47 .c.o: pci_names.c |
48 $(CC) -c $(CFLAGS) -o $@ $< | 48 $(CC) -c $(CFLAGS) -o $@ $< |
49 | 49 |
50 $(LIBNAME): $(OBJS) | 50 $(LIBNAME): $(OBJS) |
51 ifeq ($(TARGET_MINGW32),yes) | 51 ifeq ($(TARGET_WIN32),yes) |
52 $(AR) r $(LIBNAME) $(OBJS) | 52 $(AR) r $(LIBNAME) $(OBJS) |
53 else | 53 else |
54 #$(CC) -shared $(SONAME_FLAGS) -o $(LIBNAME) $(OBJS) $(LIBS) | 54 #$(CC) -shared $(SONAME_FLAGS) -o $(LIBNAME) $(OBJS) $(LIBS) |
55 $(CC) -shared -Wl,-soname -Wl,$(LIBNAME) -o $(LIBNAME) $(OBJS) $(LIBS) | 55 $(CC) -shared -Wl,-soname -Wl,$(LIBNAME) -o $(LIBNAME) $(OBJS) $(LIBS) |
56 ln -sf $(LIBNAME) $(SHORTNAME) | 56 ln -sf $(LIBNAME) $(SHORTNAME) |