54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
DEFS = @DLLFLAGS@ -D__WINE__
|
|
TOPSRCDIR = @top_srcdir@
|
|
TOPOBJDIR = ..
|
|
SRCDIR = @srcdir@
|
|
VPATH = @srcdir@
|
|
LIBEXT = @LIBEXT@
|
|
MODULE = none
|
|
SOVERSION = 1.0
|
|
SONAME = libwine_tsx11.so
|
|
EXTRALIBS = $(X_LIBS) $(XLIB)
|
|
|
|
C_SRCS = \
|
|
locking.c \
|
|
ts_xlib.c
|
|
|
|
all: libwine_tsx11.$(LIBEXT)
|
|
|
|
@MAKE_RULES@
|
|
|
|
libwine_tsx11.so.$(SOVERSION): $(OBJS)
|
|
$(LDSHARED) $(OBJS) -o $@ $(EXTRALIBS)
|
|
|
|
libwine_tsx11.so: libwine_tsx11.so.$(SOVERSION)
|
|
$(RM) $@ && $(LN_S) libwine_tsx11.so.$(SOVERSION) $@
|
|
|
|
libwine_tsx11.a: $(OBJS)
|
|
$(RM) $@
|
|
$(AR) $@ $(OBJS)
|
|
$(RANLIB) $@
|
|
|
|
libwine_tsx11.dll: $(OBJS)
|
|
$(DLLWRAP) $(DLLWRAPFLAGS) --export-all --implib libwine_tsx11.a -o libwine_tsx11.dll $(OBJS) $(EXTRALIBS)
|
|
|
|
.PHONY: install_so install_a
|
|
|
|
install_so: libwine_tsx11.so.$(SOVERSION) dummy
|
|
$(MKINSTALLDIRS) $(libdir)
|
|
$(INSTALL_PROGRAM) libwine_tsx11.so.$(SOVERSION) $(libdir)/libwine_tsx11.so.$(SOVERSION)
|
|
cd $(libdir) && $(RM) libwine_tsx11.so && $(LN_S) libwine_tsx11.so.$(SOVERSION) libwine_tsx11.so
|
|
|
|
install_a: libwine_tsx11.a dummy
|
|
$(MKINSTALLDIRS) $(libdir)
|
|
$(INSTALL_DATA) libwine_tsx11.a $(libdir)/libwine_tsx11.a
|
|
|
|
install:: $(LIBEXT:%=install_%)
|
|
|
|
uninstall::
|
|
$(RM) $(libdir)/libwine_tsx11.a $(libdir)/libwine_tsx11.so $(libdir)/libwine_tsx11.so.$(SOVERSION)
|
|
|
|
clean::
|
|
$(RM) libwine_tsx11.so.$(SOVERSION)
|
|
|
|
### Dependencies:
|