File: Makefile.in

package info (click to toggle)
sdcc 3.5.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 59,964 kB
  • ctags: 66,696
  • sloc: ansic: 422,129; cpp: 49,032; makefile: 46,849; sh: 28,496; perl: 12,125; asm: 11,748; yacc: 6,698; lisp: 1,630; lex: 747; python: 660; awk: 495; sed: 89
file content (198 lines) | stat: -rw-r--r-- 4,253 bytes parent folder | download | duplicates (3)
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
#
# uCsim gui.src/Makefile
#
# (c) Drotos Daniel, Talker Bt. 1999
#

SHELL		= /bin/sh
CXX		= @CXX@
CPP		= @CPP@
CXXCPP		= @CXXCPP@
RANLIB		= @RANLIB@
INSTALL		= @INSTALL@
MAKEDEP         = @MAKEDEP@

top_builddir	= @top_builddir@
top_srcdir	= @top_srcdir@

DEFS            = $(subs -DHAVE_CONFIG_H,,@DEFS@)
CPPFLAGS        = @CPPFLAGS@ -I$(srcdir) -I$(top_builddir) -I$(top_srcdir) \
		  -I$(top_srcdir)/sim.src -I$(top_srcdir)/cmd.src
CFLAGS          = @CFLAGS@ @WALL_FLAG@
CXXFLAGS        = @CXXFLAGS@ @WALL_FLAG@

LIBS		= @LIBS@ @CURSES_LIBS@ -L$(top_builddir)

curses_ok	= @curses_ok@

prefix          = @prefix@
exec_prefix     = @exec_prefix@
bindir          = @bindir@
libdir          = @libdir@
datadir         = @datadir@
datarootdir     = @datarootdir@
includedir      = @includedir@
mandir          = @mandir@
man1dir         = $(mandir)/man1
man2dir         = $(mandir)/man2
infodir         = @infodir@
srcdir          = @srcdir@
VPATH           = @srcdir@

enable_serio	= @enable_serio@
PKGS		=
ifeq ($(enable_serio),yes)
SERIO_PKG	= serio.src
else
SERIO_PKG	=
endif
CURSES_PKGS	= $(SERIO_PKG)

# Common code
OBJECTS		= rec.o
SOURCES		= $(patsubst %.o,%.cc,$(OBJECTS))

# uCsim only
UCSIM_OBJECTS	= gui.o if.o
UCSIM_SOURCES	= $(patsubst %.o,%.cc,$(UCSIM_OBJECTS))

# Tool only
TOOL_OBJECTS	=
TOOL_SOURCES	= $(patsubst %.o,%.cc,$(TOOL_OBJECTS))

ALL_SOURCES	= $(SOURCES) $(UCSIM_SOURCES) $(TOOL_SOURCES)


# Compiling entire program or any subproject
# ------------------------------------------
all: gui.src

gui.src: checkconf gui_api
ifeq ($(curses_ok),yes)
ifneq ($(CURSES_PKGS),)
	@for pkg in $(CURSES_PKGS); do\
	  $(MAKE) -C $$pkg $$pkg;\
	done
endif
endif
#	@for pkg in $(PKGS); do\
#	  $(MAKE) -C $$pkg $$pkg ;\
#	done

gui_api: ucsim_lib tool_lib


# Compiling and installing everything and runing test
# ---------------------------------------------------
install: install_gui_api
ifeq ($(curses_ok),yes)
ifneq ($(CURSES_PKGS),)
	@for pkg in $(CURSES_PKGS); do\
	  $(MAKE) -C $$pkg install ; cd ..;\
	done
endif
endif

install_gui_api:


# Deleting all the installed files
# --------------------------------
uninstall: uninstall_gui_api
ifeq ($(curses_ok),yes)
ifneq ($(CURSES_PKGS),)
	@for pkg in $(CURSES_PKGS); do\
	  $(MAKE) -C $$pkg uninstall ; cd ..;\
	done
endif
endif

uninstall_gui_api:


# Performing self-test
# --------------------
check: check_local
ifneq ($(CURSES_PKGS),)
	@for pkg in $(CURSES_PKGS); do\
	  $(MAKE) -C $$pkg check;\
	done
endif

check_local:

test: test_local
ifneq ($(CURSES_PKGS),)
	@for pkg in $(CURSES_PKGS); do\
	  $(MAKE) -C $$pkg test;\
	done
endif

test_local:


# Performing installation test
# ----------------------------
installcheck: installcheck_gui_api
ifneq ($(CURSES_PKGS),)
	@for pkg in $(CURSES_PKGS); do\
	  $(MAKE) -C $$pkg installcheck;\
	done
endif

installcheck_gui_api:


# Creating installation directories
# ---------------------------------
installdirs:
ifneq ($(CURSES_PKGS),)
	@for pkg in $(CURSES_PKGS); do\
	  $(MAKE) -C $$pkg installdirs;\
	done
endif

# Creating dependencies
# ---------------------
dep: Makefile.dep

Makefile.dep: $(ALL_SOURCES) $(srcdir)/*.h
	$(MAKEDEP) $(CPPFLAGS) $(filter %.cc,$^) >Makefile.dep

# don't include Makefile.dep for the listed targets:
ifeq "$(findstring $(MAKECMDGOALS),uninstall uninstall_gui_api \
                                   check check_local test test_local \
                                   checkconf \
                                   clean_local clean distclean_local \
                                   distclean mostlyclean realclean)" ""
  -include Makefile.dep
endif
include $(srcdir)/clean.mk


# My rules
# --------
ucsim_lib: $(top_builddir)/libguiucsim.a

$(top_builddir)/libguiucsim.a: $(OBJECTS) $(UCSIM_OBJECTS)
	ar -rcu $*.a $(OBJECTS) $(UCSIM_OBJECTS)
	$(RANLIB) $*.a

tool_lib: $(top_builddir)/libguitool.a

$(top_builddir)/libguitool.a: $(OBJECTS) $(TOOL_OBJECTS)
	ar -rcu $*.a $(OBJECTS) $(TOOL_OBJECTS)
	$(RANLIB) $*.a

.cc.o:
	$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@


# Remaking configuration
# ----------------------
checkconf:
	@if [ -f $(top_builddir)/devel ]; then\
	  $(MAKE) -f conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\
	fi

# End of gui.src/Makefile