94 lines
3.3 KiB
Makefile
94 lines
3.3 KiB
Makefile
DEFS = @DLLFLAGS@ -DSTRICT -DNONAMELESSUNION -DNONAMELESSSTRUCT
|
|
LDDLLFLAGS = @LDDLLFLAGS@
|
|
TOPSRCDIR = @top_srcdir@
|
|
TOPOBJDIR = ..
|
|
SRCDIR = @srcdir@
|
|
VPATH = @srcdir@
|
|
MODULE = none
|
|
PROGRAMS = expand hello hello2 hello3 hello4 hello5 new rolex volinfo
|
|
ALL_LIBS = $(LIBWINE) $(LIBS)
|
|
|
|
C_SRCS = \
|
|
expand.c \
|
|
hello.c \
|
|
hello2.c \
|
|
hello3.c \
|
|
hello4.c \
|
|
hello5.c \
|
|
new.c \
|
|
rolex.c \
|
|
volinfo.c
|
|
|
|
SPEC_SRCS = \
|
|
expand.spec \
|
|
hello.spec \
|
|
hello2.spec \
|
|
hello3.spec \
|
|
hello4.spec \
|
|
hello5.spec \
|
|
new.spec \
|
|
rolex.spec \
|
|
volinfo.spec
|
|
|
|
RC_SRCS = \
|
|
hello3res.rc
|
|
|
|
all: $(PROGRAMS) $(PROGRAMS:%=%.so)
|
|
|
|
@MAKE_RULES@
|
|
|
|
expand.spec.c: expand.spec expand.o $(WINEBUILD)
|
|
$(LDPATH) $(WINEBUILD) @DLLFLAGS@ -sym expand.o -o expand.spec.c -spec expand.spec -L$(DLLDIR) -llz32.dll -lkernel32.dll -lntdll.dll
|
|
expand.so: expand.o expand.spec.o
|
|
$(LDSHARED) $(LDDLLFLAGS) -o expand.so $+ $(ALL_LIBS)
|
|
|
|
hello.spec.c: hello.spec hello.o $(WINEBUILD)
|
|
$(LDPATH) $(WINEBUILD) @DLLFLAGS@ -sym hello.o -o hello.spec.c -spec hello.spec -L$(DLLDIR) -luser32.dll -lgdi32.dll -lkernel32.dll -lntdll.dll
|
|
hello.so: hello.o hello.spec.o
|
|
$(LDSHARED) $(LDDLLFLAGS) -o hello.so $+ $(ALL_LIBS)
|
|
|
|
hello2.spec.c: hello2.spec hello2.o $(WINEBUILD)
|
|
$(LDPATH) $(WINEBUILD) @DLLFLAGS@ -sym hello2.o -o hello2.spec.c -spec hello2.spec -L$(DLLDIR) -luser32.dll -lkernel32.dll -lntdll.dll
|
|
hello2.so: hello2.o hello2.spec.o
|
|
$(LDSHARED) $(LDDLLFLAGS) -o hello2.so $+ $(ALL_LIBS)
|
|
|
|
hello3.spec.c: hello3.spec hello3.o hello3res.res $(WINEBUILD)
|
|
$(LDPATH) $(WINEBUILD) @DLLFLAGS@ -sym hello3.o -o hello3.spec.c -spec hello3.spec -L$(DLLDIR) -lcomdlg32.dll -luser32.dll -lgdi32.dll -lkernel32.dll -lntdll.dll
|
|
hello3.so: hello3.o hello3.spec.o
|
|
$(LDSHARED) $(LDDLLFLAGS) -o hello3.so $+ $(ALL_LIBS)
|
|
|
|
hello4.spec.c: hello4.spec hello4.o $(WINEBUILD)
|
|
$(LDPATH) $(WINEBUILD) @DLLFLAGS@ -sym hello4.o -o hello4.spec.c -spec hello4.spec -L$(DLLDIR) -luser32.dll -lgdi32.dll -lkernel32.dll -lntdll.dll
|
|
hello4.so: hello4.o hello4.spec.o
|
|
$(LDSHARED) $(LDDLLFLAGS) -o hello4.so $+ $(ALL_LIBS)
|
|
|
|
hello5.spec.c: hello5.spec hello5.o $(WINEBUILD)
|
|
$(LDPATH) $(WINEBUILD) @DLLFLAGS@ -sym hello5.o -o hello5.spec.c -spec hello5.spec -L$(DLLDIR) -lkernel32.dll -lntdll.dll
|
|
hello5.so: hello5.o hello5.spec.o
|
|
$(LDSHARED) $(LDDLLFLAGS) -o hello5.so $+ $(ALL_LIBS)
|
|
|
|
new.spec.c: new.spec new.o $(WINEBUILD)
|
|
$(LDPATH) $(WINEBUILD) @DLLFLAGS@ -sym new.o -o new.spec.c -spec new.spec -L$(DLLDIR) -luser32.dll -lgdi32.dll -lkernel32.dll -lntdll.dll
|
|
new.so: new.o new.spec.o
|
|
$(LDSHARED) $(LDDLLFLAGS) -o new.so $+ $(ALL_LIBS)
|
|
|
|
rolex.spec.c: rolex.spec rolex.o $(WINEBUILD)
|
|
$(LDPATH) $(WINEBUILD) @DLLFLAGS@ -sym rolex.o -o rolex.spec.c -spec rolex.spec -L$(DLLDIR) -luser32.dll -lgdi32.dll -lkernel32.dll -lntdll.dll
|
|
rolex.so: rolex.o rolex.spec.o
|
|
$(LDSHARED) $(LDDLLFLAGS) -o rolex.so $+ $(ALL_LIBS)
|
|
|
|
volinfo.spec.c: volinfo.spec volinfo.o $(WINEBUILD)
|
|
$(LDPATH) $(WINEBUILD) @DLLFLAGS@ -sym volinfo.o -o volinfo.spec.c -spec volinfo.spec -L$(DLLDIR) -lkernel32.dll -lntdll.dll
|
|
volinfo.so: volinfo.o volinfo.spec.o
|
|
$(LDSHARED) $(LDDLLFLAGS) -o volinfo.so $+ $(ALL_LIBS)
|
|
|
|
$(PROGRAMS):
|
|
$(LN_S) $(TOPOBJDIR)/wine $@
|
|
|
|
$(PROGRAMS:%=%.so/_checklink_): $(PROGRAMS:%=%.so)
|
|
$(CC) -o checklink $(TOPSRCDIR)/library/checklink.c `dirname $@` && $(RM) checklink
|
|
|
|
checklink:: $(PROGRAMS:%=%.so/_checklink_)
|
|
|
|
### Dependencies:
|