This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/swi/console/Makefile.in

76 lines
1.6 KiB
Makefile
Raw Normal View History

2014-02-26 22:10:17 +00:00
################################################################
# Makefile for the SWI-Prolog console window.
################################################################
2014-03-06 02:03:10 +00:00
#
# default base directory for YAP installation
# (EROOT for architecture-dependent files)
#
prefix = @prefix@
exec_prefix = @exec_prefix@
ROOTDIR = $(prefix)
EROOTDIR = @exec_prefix@
#
# where YAP should look for libraries
#
LIBDIR=@libdir@/Yap
#
#
CC=@CC@
CPPFLAGS=@CPPFLAGS@
DEFS=-D_export="extern __declspec(dllexport)" -DUNICODE -D_UNICODE \
-D__WINDOWS__ -D__YAP_PROLOG__
CFLAGS= @CFLAGS@ $(DEFS) $(CPPFLAGS) -I$(srcdir) -DRLC_VENDOR="\"YAP\""
#
#
# You shouldn't need to change what follows.
#
INSTALL=@INSTALL@
INSTALL_DATA=@INSTALL_DATA@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
RANLIB=@RANLIB@
AR=@AR@
VPATH=@srcdir@
2014-02-26 22:10:17 +00:00
srcdir=@srcdir@
2014-03-06 02:03:10 +00:00
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
2014-03-06 02:03:10 +00:00
OBJECTS= complete.o console.o edit.o history.o menu.o
2014-03-06 02:03:10 +00:00
LIBS=-lgdi32 -lcomdlg32
2014-03-06 02:03:10 +00:00
all: ../../plterm.dll
2014-03-06 02:03:10 +00:00
../../plterm.dll: libplterm.a
2014-03-16 00:52:43 +00:00
$(CC) -municode $(CFLAGS) -shared -o ../../plterm.dll \
2014-03-06 02:03:10 +00:00
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive libplterm.a \
-Wl,--no-whole-archive $(LIBS) $(LDFLAGS)
2014-03-06 02:03:10 +00:00
libplterm.a: $(OBJECTS) $(SOURCES) $(HEADERS)
-rm -f libplterm.a
$(AR) rc libplterm.a $(OBJECTS)
$(RANLIB) libplterm.a
2014-03-06 02:03:10 +00:00
install:
2014-03-06 02:03:10 +00:00
clean:
rm -f *.o *~ *.dll
2014-03-06 02:03:10 +00:00
.o: .c
$(CC) -c $(CFLAGS) $(SHLIB_CFLAGS) $@ -o $<
2014-02-26 22:10:17 +00:00
console.o: $(srcdir)/console_i.h $(srcdir)/console.h
2014-02-26 22:10:17 +00:00
distclean: clean
2014-03-06 02:03:10 +00:00
rm -f Makefile