mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
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
|
|
|
|
EXTRA_SRCS = parser.y parser.l
|
|
EXTRA_OBJS = parser.tab.o @LEX_OUTPUT_ROOT@.o
|
|
|
|
all: $(PROGRAMS) $(MANPAGES)
|
|
|
|
@MAKE_RULES@
|
|
|
|
wrc$(EXEEXT): $(OBJS) $(LIBDIR)/wpp/libwpp.a
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(LIBDIR) -lwpp -lwine_unicode -lwine_port $(LEXLIB) $(LDFLAGS)
|
|
|
|
parser.tab.c parser.tab.h: parser.y
|
|
$(BISON) -d -t $(SRCDIR)/parser.y -o parser.tab.c
|
|
|
|
# hack to allow parallel make
|
|
parser.tab.h: parser.tab.c
|
|
parser.tab.o: parser.tab.h
|
|
|
|
@LEX_OUTPUT_ROOT@.c: parser.l
|
|
$(LEX) $(SRCDIR)/parser.l
|
|
|
|
@LEX_OUTPUT_ROOT@.o: parser.tab.h
|
|
|
|
install:: $(PROGRAMS) $(MANPAGES)
|
|
$(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)
|
|
|
|
uninstall::
|
|
$(RM) $(DESTDIR)$(bindir)/wrc$(EXEEXT) $(DESTDIR)$(mandir)/man$(prog_manext)/wrc.$(prog_manext)
|
|
|
|
### Dependencies:
|