annotate modules/sample/external/Makefile.in.in @ 5940:c608d4b0b75e cygwin64 tip

rescue lost branch from 64bit.backup
author Henry Thompson <ht@markup.co.uk>
date Thu, 16 Dec 2021 18:48:58 +0000
parents 4aa8ee813265
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
996
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
1 ## Makefile for the sample module in XEmacs.
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
2 ## Copyright (C) 2002 Jerry James.
4737
dce479915b74 Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents: 1490
diff changeset
3 ##
dce479915b74 Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents: 1490
diff changeset
4 ## This sample Makefile is free; you can redistribute it and/or modify it
dce479915b74 Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents: 1490
diff changeset
5 ## under the terms of the GNU General Public License as published by the
5417
dd9541c73e70 Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents: 4737
diff changeset
6 ## Free Software Foundation, either version 3 of the License, or (at your
dd9541c73e70 Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents: 4737
diff changeset
7 ## option) any later version.
996
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
8
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
9 ## This file is not part of XEmacs.
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
10
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
11 ### Specialize this part for your module
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
12 MODNAME=sample
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
13 MODVER=0.0.1
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
14 MODTITLE="Sample module for XEmacs"
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
15 SRCS=sample.c
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
16
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
17 ### You should not need to modify anything below this line
5512
4aa8ee813265 Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents: 5417
diff changeset
18 DESTDIR=
996
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
19 SHELL=/bin/sh
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
20 RM=rm -f
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
21 CFLAGS=@CFLAGS@
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
22 LDFLAGS=@LDFLAGS@
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
23
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
24 srcdir=@srcdir@
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
25 VPATH=@srcdir@
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
26
1490
74b2ea269eb5 [xemacs-hg @ 2003-05-20 15:00:22 by james]
james
parents: 1489
diff changeset
27 SRC_SRCS=$(SRCS:%=$(srcdir)/%)
74b2ea269eb5 [xemacs-hg @ 2003-05-20 15:00:22 by james]
james
parents: 1489
diff changeset
28 OBJS=$(SRCS:.c=.o)
74b2ea269eb5 [xemacs-hg @ 2003-05-20 15:00:22 by james]
james
parents: 1489
diff changeset
29
996
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
30 ELLCC=@ELLCC@
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
31 MODARCHDIR=$(shell @ELLCC@ --mod-archdir)
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
32 INSTALLPATH=$(shell @ELLCC@ --mod-site-location)
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
33 INSTALL=@INSTALL@
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
34 INSTALL_PROGRAM=@INSTALL_PROGRAM@
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
35
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
36 .PHONY: clean distclean install
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
37 all: $(MODNAME).ell
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
38
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
39 .c.o:
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
40 $(ELLCC) $(CFLAGS) --mode=compile --mod-output=$@ \
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
41 -I$(MODARCHDIR)/include -c $<
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
42
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
43 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o
1489
52dd7cedee30 [xemacs-hg @ 2003-05-20 14:40:03 by james]
james
parents: 996
diff changeset
44 $(ELLCC) --mode=link --mod-output=$@ $(OBJS) $(MODNAME)_i.o $(LDFLAGS)
996
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
45
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
46 $(MODNAME)_i.c: $(SRCS)
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
47 ELLMAKEDOC=$(MODARCHDIR)/make-docfile $(ELLCC) --mode=init \
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
48 --mod-output=$@ --mod-name=$(MODNAME) --mod-version=$(MODVER) \
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
49 --mod-title=$(MODTITLE) $(SRC_SRCS)
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
50
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
51 clean:
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
52 $(RM) $(MODNAME).ell $(OBJS) $(MODNAME)_i.* *~
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
53
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
54 distclean: clean
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
55 $(RM) Makefile config.* configure
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
56
25e260cb7994 [xemacs-hg @ 2002-09-10 15:27:02 by james]
james
parents:
diff changeset
57 install: $(MODNAME).ell
5512
4aa8ee813265 Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents: 5417
diff changeset
58 $(INSTALL_PROGRAM) $< $(DESTDIR)$(INSTALLPATH)