2 TOPSRCDIR
= @top_srcdir@
8 ALL_LIBS
= $(WINELIB
) $(X_LIBS
) $(XLIB
) $(LIBS
)
12 LANGUAGES
= En Da De Fr Sw Es
21 # Some strings need addresses >= 0x10000
23 $(LICENSELANG
:%=License_
%.c
)
25 RC_SRCS
= $(LANGUAGES
:%=%.rc
)
27 C_SRCS
= $(MOSTSRCS
) $(STRINGSRCS
)
29 MOSTOBJS
= $(MOSTSRCS
:.c
=.o
)
30 STRINGOBJS
= $(STRINGSRCS
:.c
=.o
) $(RC_SRCS
:.rc
=.o
)
32 all: check_wrc
$(PROGRAMS
)
38 # Override resource compiler rules
40 $(CPP
) $(DEFS
) $(OPTIONS
) $(DIVINCL
) -DRC_INVOKED
-P
-x c
$< |
$(WRC
) $(WRCFLAGS
) $(WRCEXTRA
) -o
$*.s
43 $(CPP
) $(DEFS
) $(OPTIONS
) $(DIVINCL
) -DRC_INVOKED
-P
-x c
$< |
$(WRC
) $(WRCFLAGS
) $(WRCEXTRA
) -nH
$*.h
46 notepad
: $(MOSTOBJS
) $(STRINGOBJS
)
47 $(CC
) -o notepad
$(MOSTOBJS
) $(LDOPTIONS
) $(ALL_LIBS
) $(STRINGOBJS
)
50 $(INSTALL_PROGRAM
) notepad
$(bindir)/notepad
53 $(RM
) $(bindir)/notepad
55 $(RC_SRCS
:.rc
=.s
): $(WRC
)