Build Win32 resources as .res files and dump them into the .spec.c file.
diff --git a/libtest/.cvsignore b/libtest/.cvsignore index efb2d9a..e4e523f 100644 --- a/libtest/.cvsignore +++ b/libtest/.cvsignore
@@ -7,7 +7,7 @@ hello2.spec.c hello3 hello3.spec.c -hello3res.s +hello3res.res hello4 hello4.spec.c hello5
diff --git a/libtest/Makefile.in b/libtest/Makefile.in index 14e38f6..90e8714 100644 --- a/libtest/Makefile.in +++ b/libtest/Makefile.in
@@ -21,7 +21,7 @@ RC_SRCS = \ hello3res.rc -all: check_wrc $(PROGRAMS) +all: $(PROGRAMS) @MAKE_RULES@ @@ -34,9 +34,11 @@ hello2: hello2.o hello2.spec.o $(CC) -o hello2 $+ -L$(DLLDIR) -lgdi32 -lkernel32 -luser32 $(DLL_LINK) $(LIBS) -hello3: hello3.o hello3.spec.o hello3res.o +hello3: hello3.o hello3.spec.o $(CC) -o hello3 $+ -L$(DLLDIR) -ladvapi32 -lcomctl32 -lcomdlg32 -lgdi32 -lkernel32 -lole32 -lrpcrt4 -lshell32 -lshlwapi -luser32 -lwinspool.drv $(DLL_LINK) $(LIBS) +hello3.spec.c: hello3res.res + hello4: hello4.o hello4.spec.o $(CC) -o hello4 $+ -L$(DLLDIR) -lgdi32 -lkernel32 -luser32 $(DLL_LINK) $(LIBS)
diff --git a/libtest/hello3.spec b/libtest/hello3.spec index 8dd4e4a..67b1097 100644 --- a/libtest/hello3.spec +++ b/libtest/hello3.spec
@@ -2,4 +2,4 @@ mode guiexe type win32 init WinMain -rsrc hello3res +rsrc hello3res.res