Makefile.in 1.21 KB
Newer Older
Vincent Béron's avatar
Vincent Béron committed
1
DEFS      = -DINCLUDEDIR="\"$(includedir)\""
Alexandre Julliard's avatar
Alexandre Julliard committed
2 3 4 5
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR    = @srcdir@
VPATH     = @srcdir@
6
EXEEXT    = @EXEEXT@
Alexandre Julliard's avatar
Alexandre Julliard committed
7

8
PROGRAMS = wrc$(EXEEXT)
9
MANPAGES = wrc.man
Alexandre Julliard's avatar
Alexandre Julliard committed
10 11 12 13 14 15 16
MODULE   = none

C_SRCS = \
	dumpres.c \
	genres.c \
	newstruc.c \
	readres.c \
17
	translation.c \
Alexandre Julliard's avatar
Alexandre Julliard committed
18 19 20 21
	utils.c \
	wrc.c \
	writeres.c

22
EXTRA_SRCS = parser.y parser.l
23
EXTRA_OBJS = parser.tab.o @LEX_OUTPUT_ROOT@.o
Alexandre Julliard's avatar
Alexandre Julliard committed
24

25
all: $(PROGRAMS) $(MANPAGES)
Alexandre Julliard's avatar
Alexandre Julliard committed
26 27 28

@MAKE_RULES@

29 30
wrc$(EXEEXT): $(OBJS) $(LIBDIR)/wpp/libwpp.a
	$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(LIBDIR) -lwpp -lwine_unicode -lwine_port $(LEXLIB) $(LDFLAGS)
31

32 33
parser.tab.c parser.tab.h: parser.y
	$(BISON) -d -t $(SRCDIR)/parser.y -o parser.tab.c
34

35
# hack to allow parallel make
36 37
parser.tab.h: parser.tab.c
parser.tab.o: parser.tab.h
38

39
@LEX_OUTPUT_ROOT@.c: parser.l
40
	$(LEX) $(SRCDIR)/parser.l
41

42
@LEX_OUTPUT_ROOT@.o: parser.tab.h
43

44
install:: $(PROGRAMS) $(MANPAGES)
45 46 47
	$(MKINSTALLDIRS) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
	$(INSTALL_DATA) wrc.man $(DESTDIR)$(mandir)/man$(prog_manext)/wrc.$(prog_manext)
	$(INSTALL_PROGRAM) wrc$(EXEEXT) $(DESTDIR)$(bindir)/wrc$(EXEEXT)
48 49

uninstall::
50
	$(RM) $(DESTDIR)$(bindir)/wrc$(EXEEXT) $(DESTDIR)$(mandir)/man$(prog_manext)/wrc.$(prog_manext)
51

Alexandre Julliard's avatar
Alexandre Julliard committed
52
### Dependencies: