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

54 lines
1.1 KiB
Makefile
Raw Normal View History

2014-02-26 22:10:17 +00:00
################################################################
# Makefile for the SWI-Prolog console window.
################################################################
2014-02-26 22:10:17 +00:00
srcdir=@srcdir@
@VPATH@ @srcdir@
2014-02-26 22:10:17 +00:00
CC=@CC@
LDEXE=@LDEXE@
PLARCH=@PLARCH@
XLIBS=@XLIBS@
SOEXT=@SO_EXT@
2014-02-26 22:10:17 +00:00
COFLAGS=@COFLAGS@
CWFLAGS=@CWFLAGS@
CIFLAGS=@CIFLAGS@
CMFLAGS=@CMFLAGS@ -DUNICODE -D_UNICODE
CPFLAGS=
CFLAGS= $(CWFLAGS) $(COFLAGS) $(CIFLAGS) $(CMFLAGS) $(CPFLAGS)
LDFLAGS=@LDFLAGS@ $(CPFLAGS)
2014-02-26 22:10:17 +00:00
PLHOME=../../..
2014-02-26 22:10:17 +00:00
include $(srcdir)/../../common.mk
2014-02-26 22:10:17 +00:00
OBJ= complete.o console.o edit.o history.o menu.o
OUT= $(PLHOME)/lib/$(PLARCH)/plterm.$(SOEXT)
INCLDIR=$(PLHOME)/include
HDR= $(INCLDIR)/console.h
2014-02-26 22:10:17 +00:00
all: $(OUT) $(HDR)
2014-02-26 22:10:17 +00:00
$(OUT): $(OBJ)
$(CC) -shared $(COFLAGS) -o $@ -Wl,--out-implib,$@.a $(OBJ) $(XLIBS)
2014-02-26 22:10:17 +00:00
$(HDR): $(INCLDIR)
2014-02-26 22:10:17 +00:00
$(INCLDIR):
mkdir -p $@
2014-02-26 22:10:17 +00:00
$(PLHOME)/include/console.h: $(srcdir)/console.h
cp -f $< $@
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
clean:
rm -f *.o
rm -f *~
2014-02-26 22:10:17 +00:00
distclean: clean
rm -f $(PLHOME)/lib/$(PLARCH)/plterm.$(SOEXT)
rm -f $(PLHOME)/lib/$(PLARCH)/plterm.$(SOEXT).a
rm -f $(INCLDIR)/console.h