Makefile.in 1.11 KB
Newer Older
1
DEFS      = @DLLFLAGS@ -D__WINE__
Alexandre Julliard's avatar
Alexandre Julliard committed
2 3 4 5
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ..
SRCDIR    = @srcdir@
VPATH     = @srcdir@
6
LIBEXT    = @LIBEXT@
Alexandre Julliard's avatar
Alexandre Julliard committed
7
MODULE    = none
8 9
SOVERSION = 1.0
SONAME    = libwine.so
Alexandre Julliard's avatar
Alexandre Julliard committed
10

11
C_SRCS = \
12
	debug.c \
13
	errno.c \
14
	ldt.c \
15
	loader.c \
16
	port.c
Alexandre Julliard's avatar
Alexandre Julliard committed
17

18
all: libwine.$(LIBEXT)
Alexandre Julliard's avatar
Alexandre Julliard committed
19 20 21

@MAKE_RULES@

22
libwine.so.$(SOVERSION): $(OBJS)
23
	$(LDSHARED) $(OBJS) $(LIBS) -o $@
24 25 26 27 28 29 30 31 32

libwine.so: libwine.so.$(SOVERSION)
	$(RM) $@ && $(LN_S) libwine.so.$(SOVERSION) $@

libwine.a: $(OBJS)
	$(RM) $@
	$(AR) $@ $(OBJS)
	$(RANLIB) $@

33 34 35
libwine.dll: $(OBJS)
	$(DLLWRAP) $(DLLWRAPFLAGS) --export-all --implib libwine.a -o libwine.dll $(OBJS)

36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
install_so: libwine.so.$(SOVERSION)
	[ -d $(libdir) ] || $(MKDIR) $(libdir)
	$(INSTALL_PROGRAM) libwine.so.$(SOVERSION) $(libdir)/libwine.so.$(SOVERSION)
	cd $(libdir) && $(RM) libwine.so && $(LN_S) libwine.so.$(SOVERSION) libwine.so

install_a: libwine.a
	[ -d $(libdir) ] || $(MKDIR) $(libdir)
	$(INSTALL_DATA) libwine.a $(libdir)/libwine.a

install:: all $(LIBEXT:%=install_%)

uninstall::
	cd $(libdir) && $(RM) libwine.a libwine.so libwine.so.$(SOVERSION)

clean::
	$(RM) libwine.so.$(SOVERSION)

Alexandre Julliard's avatar
Alexandre Julliard committed
53
### Dependencies: