2 TOPSRCDIR = @top_srcdir@
8 ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
10 WRCEXTRA = -t -A -p $*
12 LANGUAGES = En Da De Fr Sw Es Fi Wa
22 # Some strings need addresses >= 0x10000
24 $(LICENSELANG:%=License_%.c)
26 RC_SRCS = $(LANGUAGES:%=%.rc)
28 C_SRCS = $(MOSTSRCS) $(STRINGSRCS)
30 MOSTOBJS = $(MOSTSRCS:.c=.o)
31 STRINGOBJS = $(STRINGSRCS:.c=.o) $(RC_SRCS:.rc=.o)
33 all: check_wrc $(PROGRAMS)
39 # Override resource compiler rules
41 $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s
44 $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -nH $*.h
47 notepad: $(MOSTOBJS) $(STRINGOBJS)
48 $(CC) -o notepad $(MOSTOBJS) $(LDOPTIONS) $(ALL_LIBS) $(STRINGOBJS)
51 $(INSTALL_PROGRAM) notepad $(bindir)/notepad
54 $(RM) $(bindir)/notepad
56 $(RC_SRCS:.rc=.s): $(WRC)