39 lines
857 B
Makefile
39 lines
857 B
Makefile
DEFS = -DINCLUDEDIR="\"$(includedir)\"" -DDLLDIR="\"$(dlldir)\"" -DLIBDIR="\"$(libdir)\""
|
|
TOPSRCDIR = @top_srcdir@
|
|
TOPOBJDIR = ../..
|
|
SRCDIR = @srcdir@
|
|
VPATH = @srcdir@
|
|
MODULE = none
|
|
|
|
PROGRAMS = \
|
|
winegcc \
|
|
winewrap
|
|
|
|
C_SRCS = \
|
|
utils.c \
|
|
winegcc.c \
|
|
winewrap.c
|
|
|
|
all: $(PROGRAMS)
|
|
|
|
@MAKE_RULES@
|
|
|
|
winegcc: winegcc.o utils.o
|
|
$(CC) $(CFLAGS) -o $@ winegcc.o utils.o $(LIBPORT)
|
|
|
|
winewrap: winewrap.o utils.o
|
|
$(CC) $(CFLAGS) -o $@ winewrap.o utils.o $(LIBPORT)
|
|
|
|
install:: $(PROGRAMS)
|
|
$(MKINSTALLDIRS) $(bindir)
|
|
$(INSTALL_PROGRAM) winegcc $(bindir)/winegcc
|
|
$(INSTALL_PROGRAM) winewrap $(bindir)/winewrap
|
|
cd $(bindir) && $(RM) wineg++ && $(LN_S) winegcc wineg++
|
|
cd $(bindir) && $(RM) winecpp && $(LN_S) winegcc winecpp
|
|
|
|
uninstall::
|
|
$(RM) $(bindir)/winegcc $(bindir)/wineg++ \
|
|
$(bindir)/winecpp $(bindir)/winewrap
|
|
|
|
### Dependencies:
|