45 lines
1004 B
Makefile
45 lines
1004 B
Makefile
DEFS = -DINCLUDEDIR="\"$(includedir)\""
|
|
TOPSRCDIR = @top_srcdir@
|
|
TOPOBJDIR = ../..
|
|
SRCDIR = @srcdir@
|
|
VPATH = @srcdir@
|
|
EXEEXT = @EXEEXT@
|
|
|
|
PROGRAMS = wrc$(EXEEXT)
|
|
MANPAGES = wrc.man
|
|
MODULE = none
|
|
|
|
C_SRCS = \
|
|
dumpres.c \
|
|
genres.c \
|
|
newstruc.c \
|
|
readres.c \
|
|
translation.c \
|
|
utils.c \
|
|
wrc.c \
|
|
writeres.c
|
|
|
|
LEX_SRCS = parser.l
|
|
BISON_SRCS = parser.y
|
|
|
|
INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
|
|
|
|
all: $(PROGRAMS) $(MANPAGES)
|
|
|
|
@MAKE_RULES@
|
|
|
|
wrc$(EXEEXT): $(OBJS) $(LIBWPP)
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBWPP) $(LIBWINE_LDFLAGS) $(LIBPORT) $(LEXLIB) $(LDFLAGS)
|
|
|
|
install:: $(PROGRAMS) $(MANPAGES) $(INSTALLDIRS)
|
|
$(INSTALL_DATA) wrc.man $(DESTDIR)$(mandir)/man$(prog_manext)/wrc.$(prog_manext)
|
|
$(INSTALL_PROGRAM) wrc$(EXEEXT) $(DESTDIR)$(bindir)/wrc$(EXEEXT)
|
|
|
|
uninstall::
|
|
$(RM) $(DESTDIR)$(bindir)/wrc$(EXEEXT) $(DESTDIR)$(mandir)/man$(prog_manext)/wrc.$(prog_manext)
|
|
|
|
### Dependencies:
|
|
|
|
parser.tab.o: parser.tab.c
|
|
parser.yy.o: parser.yy.c parser.tab.h
|