Makefile.in 846 Bytes
Newer Older
1
DEFS      = -D__WINESRC__ -DINCLUDEDIR="\"$(includedir)\"" $(EXTRADEFS)
2
PROGRAMS = wrc$(EXEEXT) wrc-installed
3
MANPAGE  = wrc.man
4
ALL_LIBS = @LIBGETTEXTPO@ $(LIBWPP) $(LIBWINE) $(LIBPORT)
Alexandre Julliard's avatar
Alexandre Julliard committed
5 6 7 8 9

C_SRCS = \
	dumpres.c \
	genres.c \
	newstruc.c \
10
	po.c \
Alexandre Julliard's avatar
Alexandre Julliard committed
11
	readres.c \
12
	translation.c \
Alexandre Julliard's avatar
Alexandre Julliard committed
13 14 15 16
	utils.c \
	wrc.c \
	writeres.c

17 18
LEX_SRCS   = parser.l
BISON_SRCS = parser.y
Alexandre Julliard's avatar
Alexandre Julliard committed
19

20 21
INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)

22
all: $(PROGRAMS)
Alexandre Julliard's avatar
Alexandre Julliard committed
23 24 25

@MAKE_RULES@

26
wrc$(EXEEXT): $(OBJS) $(LIBWPP)
27
	$(CC) $(CFLAGS) -o $@ $(OBJS) $(ALL_LIBS) $(LDFLAGS) $(LDRPATH_LOCAL)
28

29
wrc-installed: $(OBJS) $(LIBWPP)
30
	$(CC) $(CFLAGS) -o $@ $(OBJS) $(ALL_LIBS) $(LDFLAGS) $(LDRPATH_INSTALL)
31

32
install install-dev:: wrc-installed $(DESTDIR)$(bindir)
33
	$(INSTALL_PROGRAM) wrc-installed $(DESTDIR)$(bindir)/wrc$(EXEEXT)
34 35

uninstall::
36
	$(RM) $(DESTDIR)$(bindir)/wrc$(EXEEXT)