-
Notifications
You must be signed in to change notification settings - Fork 4
/
Make3
62 lines (61 loc) · 2.85 KB
/
Make3
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
MKDIR_P = mkdir -p
am__base_list = cat # for now
INSTALL = install -m 644
INSTALL_EXEC = install -m 755
MODELGEN = gnucap-mg-vams
TARGET_LIBS =
#------------------------------------------------------------------------
all:
#------------------------------------------------------------------------
install-files: $(INSTALL_FILES)
@list='$(INSTALL_FILES)'; test -n "$(INSTALL_DIR)" || list=; \
if test -n "$$list"; then \
echo " $(MKDIR_P) '$(DESTDIR)$(INSTALL_DIR)'"; \
$(MKDIR_P) "$(DESTDIR)$(INSTALL_DIR)" || exit 1; \
fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
done | $(am__base_list) | \
while read files; do \
echo " $(INSTALL) $$files '$(DESTDIR)$(INSTALL_DIR)'"; \
$(INSTALL) $$files "$(DESTDIR)$(INSTALL_DIR)" || exit $$?; \
done
#------------------------------------------------------------------------
install-programs: $(INSTALL_PROGRAMS)
@list='$(INSTALL_PROGRAMS)'; test -n "$(PROGRAMS_DIR)" || list=; \
if test -n "$$list"; then \
echo " $(MKDIR_P) '$(DESTDIR)$(PROGRAMS_DIR)'"; \
$(MKDIR_P) "$(DESTDIR)$(PROGRAMS_DIR)" || exit 1; \
fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
done | $(am__base_list) | \
while read files; do \
echo " $(INSTALL_EXEC) $$files '$(DESTDIR)$(PROGRAMS_DIR)'"; \
$(INSTALL_EXEC) $$files "$(DESTDIR)$(PROGRAMS_DIR)" || exit $$?; \
done
#------------------------------------------------------------------------
install : install-files install-programs $(INSTALL_FILES_1) $(INSTALL_FILES_2)
[ -z "$(INSTALL_DIR_1)" ] || ${MKDIR_P} $(DESTDIR)$(INSTALL_DIR_1)
[ -z "$(INSTALL_DIR_2)" ] || ${MKDIR_P} $(DESTDIR)$(INSTALL_DIR_2)
[ -z "$(INSTALL_FILES_1)" ] || cp $(INSTALL_FILES_1) $(DESTDIR)$(INSTALL_DIR_1)
[ -z "$(INSTALL_FILES_2)" ] || cp $(INSTALL_FILES_2) $(DESTDIR)$(INSTALL_DIR_2)
#------------------------------------------------------------------------
%.o: %.cpp
$(CXX) $(GNUCAP_CPPFLAGS) $(CPPFLAGS) -I${srcdir} $(LOCAL_CXXFLAGS) $(CXXFLAGS) -c $< -fPIC -o $@ # qucsator/MakeList
#------------------------------------------------------------------------
MAKE_LIB = $(CXX) -fPIC $(GNUCAP_CPPFLAGS) ${CPPFLAGS} -I${srcdir} ${MY_CPPFLAGS} ${GNUCAP_CXXFLAGS} $(MY_CXXFLAGS) ${CXXFLAGS} ${MORE_CPPFLAGS} $(LDFLAGS) $< $(OBJS) $(MORE_OBJS) $(TARGET_LIBS) ${LDLIBS} -shared
%.cc: %.vams
${MODELGEN} -I ${GNUCAP_INCLUDEDIR} -I ${srcdir} --cc $< > $@ # Makefile_
%.cc: %.va
${MODELGEN} -I ${GNUCAP_INCLUDEDIR} -I ${srcdir} --cc $< > $@ # Makefile_
#------------------------------------------------------------------------
%.so: %.cc
$(MAKE_LIB) -o $@ # Make3
#------------------------------------------------------------------------
clean:
rm -rf $(OBJS)
#------------------------------------------------------------------------
.PHONY: clean distclean install all uninstall depend install-files install-programs