Commit 3dc5d946 authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Added .spec files for all libtest/ and programs/ WineLib apps.

Updated all Makefiles to use .spec files and new resource handling.
parent 9ffd4030
Makefile Makefile
expand expand
expand.spec.c
hello hello
hello.spec.c
hello2 hello2
hello2.spec.c
hello3 hello3
hello3res.h hello3.spec.c
hello3res.s hello3res.s
hello4 hello4
hello4.spec.c
hello5 hello5
hello5.spec.c
new new
new.spec.c
rolex rolex
rolex.spec.c
vartest vartest
vartest.spec.c
volinfo volinfo
volinfo.spec.c
...@@ -3,66 +3,57 @@ TOPOBJDIR = .. ...@@ -3,66 +3,57 @@ TOPOBJDIR = ..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = none MODULE = none
RCFLAGS = -w32 -h
PROGRAMS = expand hello hello2 hello3 hello4 hello5 new rolex vartest volinfo PROGRAMS = expand hello hello2 hello3 hello4 hello5 new rolex vartest volinfo
ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
WRCEXTRA = -t -A -p $* WRCEXTRA = -s -p $*
C_SRCS = \ SPEC_SRCS = \
expand.c \ expand.spec \
hello.c \ hello.spec \
hello2.c \ hello2.spec \
hello3.c \ hello3.spec \
hello4.c \ hello4.spec \
hello5.c \ hello5.spec \
new.c \ new.spec \
rolex.c \ rolex.spec \
vartest.c \ vartest.spec \
volinfo.c volinfo.spec
RC_SRCS = \ RC_SRCS = \
hello3res.rc hello3res.rc
all: check_wrc $(PROGRAMS) all: check_wrc check_winestub $(PROGRAMS)
depend:: $(RC_SRCS:.rc=.h)
@MAKE_RULES@ @MAKE_RULES@
$(RC_SRCS:.rc=.s): $(WRC) expand: expand.o expand.spec.o
$(CC) -o expand $+ $(LDOPTIONS) $(ALL_LIBS)
$(WINESTUB):
@cd ../library && $(MAKE)
expand: expand.o $(WINESTUB)
$(CC) -o expand expand.o $(LDOPTIONS) $(ALL_LIBS)
hello: hello.o $(WINESTUB) hello: hello.o hello.spec.o
$(CC) -o hello hello.o $(LDOPTIONS) $(ALL_LIBS) $(CC) -o hello $+ $(LDOPTIONS) $(ALL_LIBS)
hello2: hello2.o $(WINESTUB) hello2: hello2.o hello2.spec.o
$(CC) -o hello2 hello2.o $(LDOPTIONS) $(ALL_LIBS) $(CC) -o hello2 $+ $(LDOPTIONS) $(ALL_LIBS)
hello3: hello3res.o hello3.o $(WINESTUB) hello3: hello3.o hello3.spec.o hello3res.o
$(CC) -o hello3 hello3.o hello3res.o $(LDOPTIONS) $(ALL_LIBS) $(CC) -o hello3 $+ $(LDOPTIONS) $(ALL_LIBS)
hello3.o: hello3res.h
hello4: hello4.o $(WINESTUB) hello4: hello4.o hello4.spec.o
$(CC) -o hello4 hello4.o $(LDOPTIONS) $(ALL_LIBS) $(CC) -o hello4 $+ $(LDOPTIONS) $(ALL_LIBS)
hello5: hello5.o $(WINESTUB) hello5: hello5.o hello5.spec.o
$(CC) -o hello5 hello5.o $(LDOPTIONS) $(ALL_LIBS) $(CC) -o hello5 $+ $(LDOPTIONS) $(ALL_LIBS)
new: new.o $(WINESTUB) new: new.o new.spec.o
$(CC) -o new new.o $(LDOPTIONS) $(ALL_LIBS) $(CC) -o new $+ $(LDOPTIONS) $(ALL_LIBS)
rolex: rolex.o $(WINESTUB) rolex: rolex.o rolex.spec.o
$(CC) -o rolex rolex.o $(LDOPTIONS) $(ALL_LIBS) $(CC) -o rolex $+ $(LDOPTIONS) $(ALL_LIBS)
vartest: vartest.o $(WINESTUB) vartest: vartest.o vartest.spec.o
$(CC) -o vartest vartest.o $(LDOPTIONS) $(ALL_LIBS) $(CC) -o vartest $+ $(LDOPTIONS) $(ALL_LIBS)
volinfo: volinfo.o $(WINESTUB) volinfo: volinfo.o volinfo.spec.o
$(CC) -o volinfo volinfo.o $(LDOPTIONS) $(ALL_LIBS) $(CC) -o volinfo $+ $(LDOPTIONS) $(ALL_LIBS)
### Dependencies: ### Dependencies:
name expand
mode guiexe
type win32
init WinMain
name hello
mode guiexe
type win32
init WinMain
name hello2
mode guiexe
type win32
init WinMain
name hello3
mode guiexe
type win32
init WinMain
rsrc hello3res
name hello4
mode guiexe
type win32
init WinMain
name hello5
mode guiexe
type win32
init WinMain
name new
mode guiexe
type win32
init WinMain
name rolex
mode guiexe
type win32
init WinMain
name vartest
mode guiexe
type win32
init WinMain
name volinfo
mode guiexe
type win32
init WinMain
Makefile Makefile
icinfo icinfo
icinfo.spec.c
aviplay aviplay
aviplay.spec.c
aviinfo aviinfo
aviinfo.spec.c
...@@ -6,31 +6,25 @@ VPATH = @srcdir@ ...@@ -6,31 +6,25 @@ VPATH = @srcdir@
MODULE = none MODULE = none
PROGRAMS = icinfo aviinfo aviplay PROGRAMS = icinfo aviinfo aviplay
ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
RCFLAGS = -w32 -h WRCEXTRA = -s -p $*
WRCEXTRA = -t -A -p $*
LANGUAGES = SPEC_SRCS = \
LICENSELANG = icinfo.spec \
aviinfo.spec \
aviplay.spec
MOSTSRCS = \ all: check_wrc check_winestub $(PROGRAMS)
icinfo.c \
aviinfo.c \
aviinfo.c
MOSTOBJS = $(MOSTSRCS:.c=.o)
all: check_wrc $(PROGRAMS)
@MAKE_RULES@ @MAKE_RULES@
# Override resource compiler rules icinfo: icinfo.o icinfo.spec.o
icinfo: icinfo.o $(WINESTUB) $(CC) -o icinfo icinfo.o icinfo.spec.o $(LDOPTIONS) $(ALL_LIBS)
$(CC) -o icinfo icinfo.o $(LDOPTIONS) $(ALL_LIBS)
aviinfo: aviinfo.o aviinfo.spec.o
$(CC) -o aviinfo aviinfo.o aviinfo.spec.o $(LDOPTIONS) $(ALL_LIBS)
aviinfo: aviinfo.o $(WINESTUB) aviplay: aviplay.o aviplay.spec.o
$(CC) -o aviinfo aviinfo.o $(LDOPTIONS) $(ALL_LIBS) $(CC) -o aviplay aviplay.o aviplay.spec.o $(LDOPTIONS) $(ALL_LIBS)
aviplay: aviplay.o $(WINESTUB)
$(CC) -o aviplay aviplay.o $(LDOPTIONS) $(ALL_LIBS)
install:: install::
$(INSTALL_PROGRAM) icinfo $(bindir)/icinfo $(INSTALL_PROGRAM) icinfo $(bindir)/icinfo
......
name aviinfo
mode guiexe
type win32
init WinMain
name aviplay
mode guiexe
type win32
init WinMain
name icinfo
mode guiexe
type win32
init WinMain
Da.s
De.s
En.s
Es.s
Fi.s
Fr.s
Makefile Makefile
Pt.s
Sw.s
Wa.s
clock clock
clock.spec.c
rsrc.s rsrc.s
...@@ -6,7 +6,7 @@ VPATH = @srcdir@ ...@@ -6,7 +6,7 @@ VPATH = @srcdir@
MODULE = none MODULE = none
PROGRAMS = clock PROGRAMS = clock
ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
WRCEXTRA = -t -A -p clock WRCEXTRA = -s -p clock
LICENSELANG = En LICENSELANG = En
...@@ -17,9 +17,11 @@ C_SRCS = \ ...@@ -17,9 +17,11 @@ C_SRCS = \
main.c \ main.c \
$(LICENSELANG:%=License_%.c) $(LICENSELANG:%=License_%.c)
SPEC_SRCS = clock.spec
RC_SRCS = rsrc.rc RC_SRCS = rsrc.rc
all: check_wrc $(PROGRAMS) all: check_wrc check_winestub $(PROGRAMS)
@MAKE_RULES@ @MAKE_RULES@
...@@ -28,7 +30,7 @@ all: check_wrc $(PROGRAMS) ...@@ -28,7 +30,7 @@ all: check_wrc $(PROGRAMS)
$(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s
clock: $(OBJS) $(WINESTUB) clock: $(OBJS)
$(CC) -o clock $(OBJS) $(LDOPTIONS) $(ALL_LIBS) $(CC) -o clock $(OBJS) $(LDOPTIONS) $(ALL_LIBS)
install:: install::
......
name clock
mode guiexe
type win32
init WinMain
rsrc clock
Makefile Makefile
cmdlgr.h
cmdlgr.s cmdlgr.s
cmdlgtst cmdlgtst
cmdlgtst.spec.c
...@@ -6,30 +6,22 @@ VPATH = @srcdir@ ...@@ -6,30 +6,22 @@ VPATH = @srcdir@
MODULE = none MODULE = none
PROGRAMS = cmdlgtst PROGRAMS = cmdlgtst
ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
RCFLAGS = -w32 -h WRCEXTRA = -s -p cmdlgtst
WRCEXTRA = -t -A -p $*
C_SRCS = \ C_SRCS = \
cmdlgtst.c cmdlgtst.c
SPEC_SRCS = \
cmdlgtst.spec
RC_SRCS = \ RC_SRCS = \
cmdlgr.rc cmdlgr.rc
all: check_wrc $(PROGRAMS) all: check_wrc check_winestub $(PROGRAMS)
depend:: $(RC_SRCS:.rc=.h)
@MAKE_RULES@ @MAKE_RULES@
# Override resource compiler rules cmdlgtst: $(OBJS)
.rc.s:
$(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s
.rc.h:
$(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -nH $*.h
cmdlgtst: $(OBJS) $(WINESTUB)
$(CC) -o cmdlgtst $(OBJS) $(LDOPTIONS) $(ALL_LIBS) $(CC) -o cmdlgtst $(OBJS) $(LDOPTIONS) $(ALL_LIBS)
install:: install::
...@@ -38,6 +30,4 @@ install:: ...@@ -38,6 +30,4 @@ install::
uninstall:: uninstall::
$(RM) $(bindir)/cmdlgtst $(RM) $(bindir)/cmdlgtst
$(RC_SRCS:.rc=.s): $(WRC)
### Dependencies: ### Dependencies:
name cmdlgtst
mode guiexe
type win32
init WinMain
rsrc cmdlgtst
Makefile Makefile
control control
control.spec.c
...@@ -9,11 +9,13 @@ ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ...@@ -9,11 +9,13 @@ ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
C_SRCS = control.c C_SRCS = control.c
all: $(PROGRAMS) SPEC_SRCS = control.spec
all: check_winestub $(PROGRAMS)
@MAKE_RULES@ @MAKE_RULES@
control: $(OBJS) $(WINESTUB) control: $(OBJS)
$(CC) -o control $(OBJS) $(LDOPTIONS) $(ALL_LIBS) $(CC) -o control $(OBJS) $(LDOPTIONS) $(ALL_LIBS)
install:: install::
......
name control
mode guiexe
type win32
init WinMain
Da.s
De.s
En.s
Es.s
Fi.s
Fr.s
Makefile Makefile
Pt.s
Sw.s
notepad notepad
notepad.spec.c
rsrc.s rsrc.s
...@@ -6,7 +6,7 @@ VPATH = @srcdir@ ...@@ -6,7 +6,7 @@ VPATH = @srcdir@
MODULE = none MODULE = none
PROGRAMS = notepad PROGRAMS = notepad
ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
WRCEXTRA = -t -A -p notepad WRCEXTRA = -s -p notepad
LICENSELANG = En LICENSELANG = En
...@@ -18,9 +18,11 @@ C_SRCS = \ ...@@ -18,9 +18,11 @@ C_SRCS = \
search.c \ search.c \
$(LICENSELANG:%=License_%.c) $(LICENSELANG:%=License_%.c)
SPEC_SRCS = notepad.spec
RC_SRCS = rsrc.rc RC_SRCS = rsrc.rc
all: check_wrc $(PROGRAMS) all: check_wrc check_winestub $(PROGRAMS)
@MAKE_RULES@ @MAKE_RULES@
...@@ -28,7 +30,7 @@ all: check_wrc $(PROGRAMS) ...@@ -28,7 +30,7 @@ all: check_wrc $(PROGRAMS)
.rc.s: .rc.s:
$(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s
notepad: $(OBJS) $(WINESTUB) notepad: $(OBJS)
$(CC) -o notepad $(OBJS) $(LDOPTIONS) $(ALL_LIBS) $(CC) -o notepad $(OBJS) $(LDOPTIONS) $(ALL_LIBS)
install:: install::
......
name notepad
mode guiexe
type win32
init WinMain
rsrc notepad
Makefile Makefile
osversioncheck osversioncheck
osversioncheck.spec.c
...@@ -9,6 +9,8 @@ ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ...@@ -9,6 +9,8 @@ ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
C_SRCS = osversioncheck.c C_SRCS = osversioncheck.c
SPEC_SRCS = osversioncheck.spec
all: $(PROGRAMS) all: $(PROGRAMS)
@MAKE_RULES@ @MAKE_RULES@
......
name osversioncheck
mode cuiexe
type win32
init main
Da.h
Da.s
De.h
De.s
En.h
En.s
Es.h
Es.s
Fi.h
Fi.s
Fr.h
Fr.s
Hu.h
Hu.s
It.h
It.s
Ko.h
Ko.s
Makefile Makefile
Pt.h
Pt.s
Sw.h
Sw.s
Va.h
Va.s
Wa.h
Wa.s
accel.h
accel.s
progman progman
progman.spec.c
rsrc.s rsrc.s
...@@ -6,7 +6,7 @@ VPATH = @srcdir@ ...@@ -6,7 +6,7 @@ VPATH = @srcdir@
MODULE = none MODULE = none
PROGRAMS = progman PROGRAMS = progman
ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
WRCEXTRA = -t -A -p progman WRCEXTRA = -s -p progman
LICENSELANG = En LICENSELANG = En
...@@ -20,9 +20,11 @@ C_SRCS = \ ...@@ -20,9 +20,11 @@ C_SRCS = \
string.c \ string.c \
$(LICENSELANG:%=License_%.c) $(LICENSELANG:%=License_%.c)
SPEC_SRCS = progman.spec
RC_SRCS = rsrc.rc RC_SRCS = rsrc.rc
all: check_wrc $(PROGRAMS) all: check_wrc check_winestub $(PROGRAMS)
@MAKE_RULES@ @MAKE_RULES@
...@@ -30,7 +32,7 @@ all: check_wrc $(PROGRAMS) ...@@ -30,7 +32,7 @@ all: check_wrc $(PROGRAMS)
.rc.s: .rc.s:
$(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s
progman: $(OBJS) $(WINESTUB) progman: $(OBJS)
$(CC) -o progman $(OBJS) $(LDOPTIONS) $(ALL_LIBS) $(CC) -o progman $(OBJS) $(LDOPTIONS) $(ALL_LIBS)
install:: install::
......
name progman
mode guiexe
type win32
init WinMain
rsrc progman
Makefile Makefile
regapi regapi
regapi.spec.c
...@@ -6,17 +6,18 @@ VPATH = @srcdir@ ...@@ -6,17 +6,18 @@ VPATH = @srcdir@
MODULE = none MODULE = none
PROGRAMS = regapi PROGRAMS = regapi
ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
RCFLAGS = -w32 -h
WRCEXTRA = -t -A -p $*
C_SRCS = \ C_SRCS = \
regapi.c regapi.c
all: $(PROGRAMS) SPEC_SRCS = \
regapi.spec
all: check_winestub $(PROGRAMS)
@MAKE_RULES@ @MAKE_RULES@
regapi: $(OBJS) $(WINESTUB) regapi: $(OBJS)
$(CC) -o regapi $(OBJS) $(LDOPTIONS) $(ALL_LIBS) $(CC) -o regapi $(OBJS) $(LDOPTIONS) $(ALL_LIBS)
install:: install::
......
name regapi
mode guiexe
type win32
init WinMain
Makefile Makefile
regtest regtest
regtest.spec.c
...@@ -6,16 +6,16 @@ VPATH = @srcdir@ ...@@ -6,16 +6,16 @@ VPATH = @srcdir@
MODULE = none MODULE = none
PROGRAMS = regtest PROGRAMS = regtest
ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
RCFLAGS = -w32 -h
WRCEXTRA = -t -A -p $*
C_SRCS = regtest.c C_SRCS = regtest.c
all: $(PROGRAMS) SPEC_SRCS = regtest.spec
all: check_winestub $(PROGRAMS)
@MAKE_RULES@ @MAKE_RULES@
regtest: $(OBJS) $(WINESTUB) regtest: $(OBJS)
$(CC) -o regtest $(OBJS) $(LDOPTIONS) $(ALL_LIBS) $(CC) -o regtest $(OBJS) $(LDOPTIONS) $(ALL_LIBS)
install:: install::
......
name regtest
mode guiexe
type win32
init WinMain
Makefile Makefile
view view
viewrc.h view.spec.c
viewrc.s viewrc.s
...@@ -6,32 +6,24 @@ VPATH = @srcdir@ ...@@ -6,32 +6,24 @@ VPATH = @srcdir@
MODULE = none MODULE = none
PROGRAMS = view PROGRAMS = view
ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
RCFLAGS = -w32 -h WRCEXTRA = -s -p view
WRCEXTRA = -t -A -p $*
C_SRCS = \ C_SRCS = \
init.c \ init.c \
view.c \ view.c \
winmain.c winmain.c
SPEC_SRCS = \
view.spec
RC_SRCS = \ RC_SRCS = \
viewrc.rc viewrc.rc
all: check_wrc $(PROGRAMS) all: check_wrc check_winestub $(PROGRAMS)
depend:: $(RC_SRCS:.rc=.h)
@MAKE_RULES@ @MAKE_RULES@
# Override resource compiler rules view: $(OBJS)
.rc.s:
$(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s
.rc.h:
$(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -nH $*.h
view: $(OBJS) $(WINESTUB)
$(CC) -o view $(OBJS) $(LDOPTIONS) $(ALL_LIBS) $(CC) -o view $(OBJS) $(LDOPTIONS) $(ALL_LIBS)
install:: install::
...@@ -40,6 +32,4 @@ install:: ...@@ -40,6 +32,4 @@ install::
uninstall:: uninstall::
$(RM) $(bindir)/view $(RM) $(bindir)/view
$(RC_SRCS:.rc=.s): $(WRC)
### Dependencies: ### Dependencies:
name view
mode guiexe
type win32
init WinMain
rsrc view
Makefile Makefile
wcmd wcmd
wcmdrc.h wcmd.spec.c
wcmdrc.s wcmdrc.s
...@@ -6,8 +6,7 @@ VPATH = @srcdir@ ...@@ -6,8 +6,7 @@ VPATH = @srcdir@
MODULE = none MODULE = none
PROGRAMS = wcmd PROGRAMS = wcmd
ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
RCFLAGS = -w32 -h WRCEXTRA = -s -p wcmd
WRCEXTRA = -A -t -p $*
C_SRCS = \ C_SRCS = \
batch.c \ batch.c \
...@@ -15,19 +14,20 @@ C_SRCS = \ ...@@ -15,19 +14,20 @@ C_SRCS = \
directory.c \ directory.c \
wcmdmain.c wcmdmain.c
SPEC_SRCS = \
wcmd.spec
RC_SRCS = \ RC_SRCS = \
wcmdrc.rc wcmdrc.rc
all: check_wrc $(PROGRAMS) all: check_wrc $(PROGRAMS)
depend:: $(RC_SRCS:.rc=.h)
@MAKE_RULES@ @MAKE_RULES@
#this line is needed to prevent winestub.o being linked #this line is needed to prevent winestub.o being linked
WINESTUB = WINESTUB =
wcmd: $(OBJS) $(WINESTUB) wcmd: $(OBJS)
$(CC) -o wcmd $(OBJS) $(LDOPTIONS) $(ALL_LIBS) $(CC) -o wcmd $(OBJS) $(LDOPTIONS) $(ALL_LIBS)
install:: install::
...@@ -36,6 +36,4 @@ install:: ...@@ -36,6 +36,4 @@ install::
uninstall:: uninstall::
$(RM) $(bindir)/wcmd $(RM) $(bindir)/wcmd
$(RC_SRCS:.rc=.s): $(WRC)
### Dependencies: ### Dependencies:
name wcmd
mode cuiexe
type win32
init main
Da.h
Da.s
De.h
De.s
En.h
En.s
Es.h
Es.s
Fi.h
Fi.s
Fr.h
Fr.s
Hu.h
Hu.s
It.h
It.s
Ko.h
Ko.s
Makefile Makefile
Pt.h
Pt.s
Sw.h
Sw.s
Va.h
Va.s
Wa.h
Wa.s
hlp2sgml hlp2sgml
lex.yy.c lex.yy.c
rsrc.s rsrc.s
winhelp winhelp
winhelp.spec.c
y.tab.c y.tab.c
y.tab.h y.tab.h
...@@ -6,7 +6,7 @@ VPATH = @srcdir@ ...@@ -6,7 +6,7 @@ VPATH = @srcdir@
MODULE = none MODULE = none
PROGRAMS = winhelp hlp2sgml PROGRAMS = winhelp hlp2sgml
ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
WRCEXTRA = -t -A -p winhelp WRCEXTRA = -s -p winhelp
C_SRCS = \ C_SRCS = \
winhelp.c \ winhelp.c \
...@@ -14,12 +14,14 @@ C_SRCS = \ ...@@ -14,12 +14,14 @@ C_SRCS = \
macro.c \ macro.c \
string.c string.c
SPEC_SRCS = winhelp.spec
EXTRA_SRCS = macro.yacc.y macro.lex.l EXTRA_SRCS = macro.yacc.y macro.lex.l
EXTRA_OBJS = y.tab.o lex.yy.o EXTRA_OBJS = y.tab.o lex.yy.o
RC_SRCS = rsrc.rc RC_SRCS = rsrc.rc
all: check_wrc $(PROGRAMS) all: check_wrc check_winestub $(PROGRAMS)
depend:: y.tab.h depend:: y.tab.h
...@@ -29,7 +31,7 @@ depend:: y.tab.h ...@@ -29,7 +31,7 @@ depend:: y.tab.h
.rc.s: .rc.s:
$(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s
winhelp: $(OBJS) $(WINESTUB) winhelp: $(OBJS)
$(CC) -o winhelp $(OBJS) $(LDOPTIONS) $(ALL_LIBS) $(CC) -o winhelp $(OBJS) $(LDOPTIONS) $(ALL_LIBS)
hlp2sgml: hlp2sgml.o hlpfile.o hlp2sgml: hlp2sgml.o hlpfile.o
......
name winhelp
mode guiexe
type win32
init WinMain
rsrc winhelp
Makefile Makefile
winver winver
winver.spec.c
...@@ -6,16 +6,16 @@ VPATH = @srcdir@ ...@@ -6,16 +6,16 @@ VPATH = @srcdir@
MODULE = none MODULE = none
PROGRAMS = winver PROGRAMS = winver
ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
RCFLAGS = -w32 -h
WRCEXTRA = -t -A -p $*
C_SRCS = winver.c C_SRCS = winver.c
all: check_wrc $(PROGRAMS) SPEC_SRCS = winver.spec
all: check_winestub $(PROGRAMS)
@MAKE_RULES@ @MAKE_RULES@
winver: $(OBJS) $(WINESTUB) winver: $(OBJS)
$(CC) -o winver $(OBJS) $(LDOPTIONS) $(ALL_LIBS) $(CC) -o winver $(OBJS) $(LDOPTIONS) $(ALL_LIBS)
install:: install::
......
name winver
mode guiexe
type win32
init WinMain
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment