Mercurial > mplayer.hg
diff libdha/Makefile @ 6057:31e465fda59c
various openbsd and general warning fixes - patch by Bj«Órn Sandell <biorn@dce.chalmers.se>
author | arpi |
---|---|
date | Sun, 12 May 2002 02:18:52 +0000 |
parents | 0d9a096cfd46 |
children | 136c061fab12 |
line wrap: on
line diff
--- a/libdha/Makefile Sun May 12 01:51:09 2002 +0000 +++ b/libdha/Makefile Sun May 12 02:18:52 2002 +0000 @@ -15,6 +15,10 @@ OBJS=$(SRCS:.c=.o) CFLAGS = $(OPTFLAGS) -fPIC -I. -I.. -Wall -W +LIBS = +ifeq ($(TARGET_OS),OpenBSD) +LIBS += -li386 +endif .SUFFIXES: .c .o @@ -24,7 +28,7 @@ $(CC) -c $(CFLAGS) -o $@ $< $(LIBNAME): $(OBJS) - $(CC) -shared -o $(LIBNAME) $(OBJS) + $(CC) -shared -o $(LIBNAME) $(OBJS) $(LIBS) ln -sf $(LIBNAME) $(SHORTNAME) all: $(LIBNAME) $(SHORTNAME) @@ -52,8 +56,12 @@ mkdir -p $(prefix)/lib install -m 755 -s -p $(LIBNAME) $(prefix)/lib/$(LIBNAME) rm -f $(prefix)/lib/libdha.so - ln -sf $(LIBNAME) $(prefix)/lib/libdha.so + ln -sf $(LIBNAME) $(prefix)/lib/$(SHORTNAME) +ifeq ($(TARGET_OS),OpenBSD) + ldconfig -R +else ldconfig +endif # # include dependency files if they exist