1 #include "../Wine.tmpl"
8 echo "#include \"windows.h\"" >$*.rct
9 echo WINDOWS_H_ENDS_HERE >>$*.rct
11 $(CC) -E -x c -P $(CFLAGS) $*.rct | sed -e '1,/^WINDOWS_H_ENDS_HERE/d' | ./winerc -o $* -v -p $*
14 XCOMM This would be nicer, but it breaks gcc (2.5.8 on Linux) --AJ
15 XCOMM gcc -E -x c -P $(CFLAGS) -imacros ../include/windows.h $*.rc | ./winerc -o $* -v -p $*
17 RCSRCS = sysres.rc sysresbm.rc
19 RCOBJS = $(RCSRCS:.rc=.o)
21 WineRelocatableTarget($(MODULE),,$(RCOBJS))
23 $(RCOBJS): winerc $(TOP)/include/windows.h
28 $(RM) $(RCSRCS:.rc=.c) $(RCSRCS:.rc=.h)
31 XCOMM Rules to build the winerc program
40 #ifdef i386BsdArchitecture
42 #if defined(i386BsdArchitecture) || defined(i386FreeBsd) || defined(FreeBSDArchitecture)
45 #ifdef LinuxArchitecture
46 LOCAL_LIBRARIES = -lfl
49 depend:: rc.tab.c rc.tab.h lex.yy.c
52 $(RM) lex.yy.c rc.tab* y.tab.c
54 ComplexProgramTarget(winerc)
56 rc.tab.c rc.tab.h: rc.y
57 $(YACC) -b rc -d --debug rc.y
59 lex.yy.c: rc.l rc.tab.h