File: Makefile.am

package info (click to toggle)
xcircuit 2.5.3rev0-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,292 kB
  • ctags: 3,497
  • sloc: ansic: 41,848; sh: 2,741; python: 473; makefile: 165
file content (121 lines) | stat: -rw-r--r-- 3,628 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
## Process this file with automake to produce Makefile.in

AUTOMAKE_OPTIONS = foreign no-dependencies

SUBDIRS = Xw

# Additional files to distribute
EXTRA_DIST = COPYRIGHT README README.ISOLatin2 README.notes

# Menudep program generates menudep.h needed by some of the
# source files for Xcircuit
noinst_PROGRAMS = menudep

menudep_SOURCES = menudep.c

menudep: menudep.o
	$(CC) -o $@ $@.o

menudep.h: menudep
	./$<

# Automake files
ac_aux_dir = dist

# Requirements for Xcircuit
bin_PROGRAMS = xcircuit

# Temporary directory (if not overridden by environment variable TMPDIR)
tmpdir = /tmp

# Directory for app-defaults file
appdefaultsdir = $(datadir)/$(PACKAGE)-$(VERSION)/app-defaults

PATHNAMES = -DPROG_VERSION=$(VERSION) \
	-DTEMP_DIR=\"$(tmpdir)\" \
	-DRESOURCES_DIR=\"$(appdefaultsdir)\" \
	-DBUILTINS_DIR=\"$(librarydir)\" \
	-DBUILTINS_FILE=\"$(BUILTINS_FILE)\" \
	-DUSER_RC_FILE=\"$(USER_RC_FILE)\" \
	-DPROLOGUE_DIR=\"$(librarydir)\" \
	-DPROLOGUE_FILE=\"$(PROLOGUE_FILE)\" \
	-DSTARTUP_FILE=\"$(STARTUP_FILE)\" \
	-DLGF_LIB=\"$(LGF_LIB)\"
INCLUDES = -IXw $(PATHNAMES)

xcircuit_SOURCES = elements.c events.c filelist.c files.c \
	fontfile.c formats.c functions.c help.c keybindings.c \
	libraries.c menucalls.c netlist.c parameter.c python.c \
	rcfile.c render.c schema.c selection.c text.c xcircuit.c
xcircuit_LDADD = Xw/libxcXw.a

help.c: menudep.h
menucalls.c: menudep.h
rcfile.c: menudep.h
schema.c: menudep.h
xcircuit.c: menudep.h

# Man page
M4_DEFS = @M4_DEFS@ @DEFS@
man_MANS = xcircuit.1

xcircuit.1: xcircuit.1.m4
	$(M4) $(M4_DEFS) $(PATHNAMES) -DLIBDIR=\"$(libdir)\" $< > $@

# Library directory and files
librarydir = $(datadir)/$(PACKAGE)-$(VERSION)
USER_RC_FILE = .xcircuitrc
PROLOGUE_FILE = xcircps2.pro
BUILTINS_DEP1 = generic.lps
BUILTINS_DEP2 = analog.lps
BUILTINS_DEP3 = avlsi.lps
BUILTINS_DEP4 = digital.lps
BUILTINS_DEP5 = analoglib2.lps
BUILTINS_DEP6 = ic_templates.lps
BUILTINS_DEP7 = quadparts.lps
LGF_LIB = lgf.lps
SIGNAL_LIB = signal.lps
MUSIC_LIB = musiclib.lps
STARTUP_FILE = @STARTUP_FILE@

FONTS_LPS = courier courieriso2 courieriso5 helvetica helveticaiso2 \
	helveticaiso5 myfont symbol times_roman times_romaniso2 \
	times_romaniso5
FONTS_XFE = courier courieriso courieriso2 courieriso5 helvetica \
	helveticaiso helveticaiso2 helveticaiso5 myfont symbol \
	times_roman times_romaniso times_romaniso2 times_romaniso5

install-data-local:
	@echo "Installing app-defaults file"
	$(mkinstalldirs) $(DESTDIR)$(appdefaultsdir)
	$(INSTALL_DATA) XCircuit.ad $(DESTDIR)$(appdefaultsdir)/XCircuit
	@echo "Installing library files"
	$(mkinstalldirs) $(DESTDIR)$(librarydir)
	for lib in $(PROLOGUE_FILE) $(BUILTINS_DEP1) $(BUILTINS_DEP2) \
		$(BUILTINS_DEP3) $(BUILTINS_DEP4) $(BUILTINS_DEP5) \
		$(BUILTINS_DEP6) $(BUILTINS_DEP7) \
		$(LGF_LIB) $(SIGNAL_LIB) $(MUSIC_LIB) $(STARTUP_FILE); do \
		$(INSTALL_DATA) lib/$$lib $(DESTDIR)$(librarydir); \
	done
	@echo "Installing .lps font files"
	$(mkinstalldirs) $(DESTDIR)$(librarydir)/fonts
	for i in $(FONTS_LPS); do \
		$(INSTALL_DATA) lib/fonts/$$i.lps $(DESTDIR)$(librarydir)/fonts; \
	done
	@echo "Installing .xfe font files"
	for i in $(FONTS_XFE); do \
		$(INSTALL_DATA) lib/fonts/$$i.xfe $(DESTDIR)$(librarydir)/fonts; \
	done

veryclean:
	$(RM) xcircuit *.o *.bak Makefile menudep menudep.h xcircuit.1 core
	$(RM) config.cache config.log config.status
	(cd ./Xw; $(RM) *.o *.a *.bak Makefile core)


extremelyclean:
	$(RM) xcircuit *.o *.bak core
	$(RM) menudep menudep.h xcircuit.1
	$(RM) install-sh missing mkinstalldirs Makefile.in Makefile
	$(RM) config.* aclocal.m4
	(cd ./Xw; $(RM) *.o *.a *.bak Makefile.in Makefile core)