DEFS      = -DWINELIB
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR    = @srcdir@
VPATH     = @srcdir@
MODULE    = none
PROGRAMS  = notepad
ALL_LIBS  = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
RCFLAGS   = -w32 -h
WRCEXTRA  = -t -A -p $*

LANGUAGES   = En Da De Fr Sw Es Fi Wa
LICENSELANG = En

MOSTSRCS = \
	license.c \
	main.c \
	dialog.c \
	language.c \
	search.c

# Some strings need addresses >= 0x10000
STRINGSRCS = \
	$(LICENSELANG:%=License_%.c)

RC_SRCS = $(LANGUAGES:%=%.rc)

C_SRCS = $(MOSTSRCS) $(STRINGSRCS)

MOSTOBJS = $(MOSTSRCS:.c=.o)
STRINGOBJS = $(STRINGSRCS:.c=.o) $(RC_SRCS:.rc=.o)

all: check_wrc $(PROGRAMS)

depend::

@MAKE_RULES@

# Override resource compiler rules
.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


notepad: $(MOSTOBJS) $(STRINGOBJS)
	$(CC) -o notepad $(MOSTOBJS) $(LDOPTIONS) $(ALL_LIBS) $(STRINGOBJS)

install: dummy
	$(INSTALL_PROGRAM) notepad $(bindir)/notepad

uninstall: dummy
	$(RM) $(bindir)/notepad

$(RC_SRCS:.rc=.s): $(WRC)

dummy:

### Dependencies:
