File: Makefile.in

package info (click to toggle)
fricas 1.3.6-6
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 117,640 kB
  • sloc: lisp: 606,654; ansic: 36,919; sh: 3,994; makefile: 2,342; javascript: 1,381; awk: 965
file content (127 lines) | stat: -rw-r--r-- 3,747 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
fricas_c_runtime_extra = @fricas_c_runtime_extra@

bin_PROGRAMS = htadd hypertex spadbuf hthits ex2ht

# this is where to put the various commands
OUTLIB=	$(fricas_target_libdir)

BITMAPS = mouse11.bitmap mouse11.mask sdown3d.bitmap sdown3dpr.bitmap \
	sdown.bitmap sup3d.bitmap sup3dpr.bitmap sup.bitmap ht_icon

SCRIPTS=${OUTLIB}/htsearch ${OUTLIB}/presea

BINFILES= $(fricas_target_bindir)/hypertex$(EXEEXT) \
		$(fricas_target_bindir)/htadd$(EXEEXT) \
		${OUTLIB}/spadbuf$(EXEEXT) \
		${OUTLIB}/hthits$(EXEEXT) ${OUTLIB}/ex2ht$(EXEEXT)


HEADERS_src = extent.h hterror.h hyper.h keyin.h lex.h \
	parse.h parse-types.h token.h

HEADERS = $(addprefix $(srcdir)/, $(HEADERS_src) $(BITMAPS)) $(fricas_c_macros)


build_libdir = $(abs_top_builddir)/src/lib

bin_PROGRAMS = hypertex$(EXEEXT) \
		htadd$(EXEEXT) \
		spadbuf$(EXEEXT) \
		ex2ht$(EXEEXT) \
		hthits$(EXEEXT)

hypertex_sources = addfile.c cond.c dialog.c display.c event.c extent1.c \
		extent2.c form-ext.c group.c halloc.c hash.c hterror.c \
		htinp.c hyper.c initx.c input.c item.c keyin.c lex.c \
		macro.c mem.c parse.c parse-aux.c parse-input.c \
		parse-paste.c parse-types.c ReadBitmap.c scrollbar.c \
		show-types.c spadint.c titlebar.c

hypertex_objects = $(hypertex_sources:.c=.$(OBJEXT))
hypertex_LDADD = -L$(build_libdir) -lspad $(fricas_c_runtime_extra)
hypertex_DEPENDENCIES = $(build_libdir)/libspad.a

htadd_sources = addfile.c halloc.c hash.c htadd.c hterror.c lex.c
htadd_objects = $(htadd_sources:.c=.$(OBJEXT))
# FIXME: remove extra dependency
htadd_LDADD = -L$(build_libdir) -lspad $(fricas_c_runtime_extra)
htadd_DEPENDENCIES = $(build_libdir)/libspad.a


spadbuf_sources = spadbuf.c
spadbuf_objects = $(spadbuf_sources:.c=.$(OBJEXT))
spadbuf_LDADD = -L$(build_libdir) -lspad $(fricas_c_runtime_extra)
spadbuf_DEPENDENCIES = $(build_libdir)/libspad.a

hthits_sources = hthits.c
hthits_objects = $(hthits_sources:.c=.$(OBJEXT))
hthits_LDADD = -L$(build_libdir) -lspad
hthits_DEPENDENCIES = $(build_libdir)/libspad.a

ex2ht_sources = ex2ht.c
ex2ht_objects = $(ex2ht_sources:.c=.$(OBJEXT))
ex2ht_LDADD = -L$(build_libdir) -lspad
ex2ht_DEPENDENCIES = $(build_libdir)/libspad.a


subdir = src/hyper/

.PHONY: all all-hyper
.SUFFIXES:
.SUFFIXES: .c .o .h

all: all-ax

all-ax all-hyper: stamp
	@ echo finished $(builddir)

stamp: ${SCRIPTS} ${BINFILES}
	-rm -f stamp
	$(STAMP) stamp

mostlyclean-local:
	-rm -f $(hypertex_objects)
	-rm -f $(htadd_objects)
	-rm -f $(htsearch_objects)
	-rm -f $(spadbuf_objects)
	-rm -f $(hthits_objects)
	-rm -f $(ex2ht_objects)
	-rm -f stamp


clean-local: mostlyclean-local
	-rm -f $(BINFILES)

distclean-local: clean-local

.PRECIOUS: %.$(OBJEXT)

%.$(OBJEXT): $(srcdir)/%.c $(HEADERS)
	$(CC) $(CFLAGS) ${CCF} $(fricas_includes) $(FRICAS_X11_CFLAGS) \
	    -I$(srcdir) -c -o $@ $<

${OUTLIB}/htsearch: $(srcdir)/htsearch
	cp $< $@
	chmod a+x $@

${OUTLIB}/presea: $(srcdir)/presea.in
	sed 's,@TARGET_AWK@,${TARGET_AWK},' $< > $@
	chmod a+x $@

${OUTLIB}/ex2ht$(EXEEXT): $(ex2ht_objects) $(ex2ht_DEPENDENCIES)
	${CC} $(ex2ht_objects) ${LDF} -o $@ $(ex2ht_LDADD) $(FRICAS_X11_LDFLAGS) -lm

$(fricas_target_bindir)/htadd$(EXEEXT): $(htadd_objects) $(htadd_DEPENDENCIES)
	${CC} $(htadd_objects) ${LDF} -o $@ $(htadd_LDADD) $(FRICAS_X11_LDFLAGS) -lm

${OUTLIB}/hthits$(EXEEXT): $(hthits_objects) $(hthits_DEPENDENCIES)
	${CC} $(hthits_objects) ${LDF} -o $@ $(hthits_LDADD) $(FRICAS_X11_LDFLAGS) -lm


$(fricas_target_bindir)/hypertex$(EXEEXT): $(hypertex_objects) $(hypertex_DEPENDENCIES)
	 ${CC} -g $(hypertex_objects) ${LDF} -o $@ $(hypertex_LDADD) \
		$(FRICAS_X11_LDFLAGS) -lm

${OUTLIB}/spadbuf$(EXEEXT): $(spadbuf_objects) $(spadbuf_DEPENDENCIES)
	${CC} $(spadbuf_objects) ${LDF} -o $@ $(spadbuf_LDADD) \
		$(FRICAS_X11_LDFLAGS) -lm