mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 14:24:45 +00:00
37 lines
698 B
Makefile
37 lines
698 B
Makefile
DEFS = -D__WINE__
|
|
TOPSRCDIR = @top_srcdir@
|
|
TOPOBJDIR = ..
|
|
SRCDIR = @srcdir@
|
|
VPATH = @srcdir@
|
|
MODULE = wine
|
|
IMPORTS = ntdll
|
|
LDIMPORTS = ntdll.dll
|
|
|
|
SPEC_SRCS = wine.spec
|
|
|
|
C_SRCS = \
|
|
main.c
|
|
|
|
all: $(MODULE)
|
|
|
|
@MAKE_RULES@
|
|
|
|
ALL_OBJS = $(SPEC_SRCS:.spec=.spec.o) $(OBJS)
|
|
|
|
$(MODULE): $(ALL_OBJS)
|
|
$(CC) -o $@ $(ALL_OBJS) -L$(DLLDIR) $(LDIMPORTS:%=-l%) $(LIBWINE) $(LIBUNICODE) $(LIBS) $(LDFLAGS)
|
|
|
|
wine.spec.c: wine.spec
|
|
$(LDPATH) $(WINEBUILD) $(DEFS) -o $@ -spec $(SRCDIR)/wine.spec -mgui -L$(DLLDIR) $(IMPORTS:%=-l%)
|
|
|
|
install:: $(MODULE)
|
|
$(MKINSTALLDIRS) $(bindir)
|
|
$(INSTALL_PROGRAM) wine $(bindir)/wine
|
|
|
|
uninstall::
|
|
$(RM) $(bindir)/wine
|
|
|
|
clean::
|
|
$(RM) $(MODULE)
|
|
|
|
### Dependencies:
|