2008-03-27 00:41:33 +00:00
|
|
|
#
|
|
|
|
# default base directory for YAP installation
|
|
|
|
# (EROOT for architecture-dependent files)
|
|
|
|
#
|
|
|
|
prefix = @prefix@
|
2010-03-06 00:18:24 +00:00
|
|
|
exec_prefix = @exec_prefix@
|
2008-03-27 00:41:33 +00:00
|
|
|
ROOTDIR = $(prefix)
|
|
|
|
EROOTDIR = @exec_prefix@
|
|
|
|
#
|
|
|
|
# where YAP should look for libraries
|
|
|
|
#
|
2010-03-05 08:15:02 +00:00
|
|
|
LIBDIR=@libdir@/Yap
|
2008-03-27 00:41:33 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
CC=@CC@
|
|
|
|
CPPFLAGS=@CPPFLAGS@
|
2010-05-05 16:34:53 +01:00
|
|
|
CFLAGS= @CFLAGS@ $(DEFS) $(CPPFLAGS) -I$(srcdir) -DRLC_VENDOR="\"YAP\""
|
2008-03-27 00:41:33 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# You shouldn't need to change what follows.
|
|
|
|
#
|
|
|
|
INSTALL=@INSTALL@
|
|
|
|
INSTALL_DATA=@INSTALL_DATA@
|
|
|
|
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
|
|
|
RANLIB=@RANLIB@
|
|
|
|
AR=@AR@
|
|
|
|
srcdir=@srcdir@
|
|
|
|
|
|
|
|
SOURCES= \
|
|
|
|
$(srcdir)/complete.c $(srcdir)/console.c \
|
|
|
|
$(srcdir)/edit.c $(srcdir)/history.c \
|
|
|
|
$(srcdir)/menu.c
|
|
|
|
HEADERS= \
|
|
|
|
$(srcdir)/common.h $(srcdir)/console.h \
|
|
|
|
$(srcdir)/console_i.h $(srcdir)/history.h \
|
|
|
|
$(srcdir)/menu.h
|
|
|
|
|
|
|
|
OBJECTS= complete.o console.o edit.o history.o menu.o
|
|
|
|
|
|
|
|
LIBS=-lgdi32 -lcomdlg32
|
|
|
|
|
|
|
|
all: plterm.dll
|
|
|
|
|
|
|
|
plterm.dll: libplterm.a
|
|
|
|
$(CC) $(CFLAGS) -shared -o plterm.dll \
|
|
|
|
-Wl,--export-all-symbols \
|
|
|
|
-Wl,--enable-auto-import \
|
|
|
|
-Wl,--whole-archive libplterm.a \
|
|
|
|
-Wl,--no-whole-archive $(LIBS) $(LDFLAGS)
|
|
|
|
|
|
|
|
libplterm.a: $(OBJECTS) $(SOURCES) $(HEADERS)
|
|
|
|
-rm -f libplterm.a
|
|
|
|
$(AR) rc libplterm.a $(OBJECTS)
|
|
|
|
$(RANLIB) libplterm.a
|
|
|
|
|
|
|
|
install: plterm.dll
|
|
|
|
$(INSTALL_PROGRAM) plterm.dll $(DESTDIR)$(LIBDIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *~ *.dll
|
|
|
|
|
|
|
|
complete.o: $(srcdir)/complete.c
|
|
|
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/complete.c -o complete.o
|
|
|
|
|
|
|
|
console.o: $(srcdir)/console.c
|
|
|
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/console.c -o console.o
|
|
|
|
|
|
|
|
history.o: $(srcdir)/history.c
|
|
|
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/history.c -o history.o
|
|
|
|
|
|
|
|
menu.o: $(srcdir)/menu.c
|
|
|
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/menu.c -o menu.o
|
|
|
|
|
|
|
|
edit.o: $(srcdir)/edit.c
|
|
|
|
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $(srcdir)/edit.c -o edit.o
|
|
|
|
|