• R/O
  • SSH

main: 提交

Main development repository for Aotus.


Commit MetaInfo

修訂361fcbc2215806768c7cbeb92090e717ebf20162 (tree)
時間2019-08-22 06:22:27
作者Harald Klimach <harald.klimach@uni-...>
CommiterHarald Klimach

Log Message

Merged precompiler flags into main development.

Change Summary

差異

diff -r f7523133f0b1 -r 361fcbc22158 Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile Wed Aug 21 23:22:27 2019 +0200
@@ -0,0 +1,97 @@
1+
2+# Define variables for internal Lua source code
3+EXTERNAL_LUA_V = 5.3.4
4+# Default platform
5+PLATFORM ?= linux
6+
7+# Define VPATH
8+VPATH ?= $(shell pwd)
9+
10+# the default target
11+.PHONY: default
12+default: lib
13+
14+# the all target
15+.PHONY: all static
16+all: static
17+
18+
19+# SMEKASETTINGS (DO NOT DELETE)
20+# DO NOT CHANGE CONTENT IN THIS BLOCK
21+# IT MAY BE OVERWRITTEN WHEN REINSTALLING SMEKA
22+#
23+# This Makefile was created by smeka:
24+# github.com/zerothi/smeka
25+
26+# Top-directory of Makefile/source tree
27+# If need set, do so ABOVE this block!
28+TOP_DIR ?= .
29+
30+# Directory of smeka default Makefiles
31+SMEKA_DIR = smeka
32+
33+# Include the smeka settings!
34+include $(TOP_DIR)/$(SMEKA_DIR)/Makefile.smeka
35+
36+# SMEKAENDSETTINGS (DO NOT DELETE)
37+
38+
39+# The linker is a fortran compiler
40+LINK := $(FC)
41+
42+# Create targets for the library
43+.PHONY: lib lua-lib
44+lib: $(LIBRARIES)
45+
46+# Determine whether the user has added an external
47+# Lua header file.
48+ifdef LUA_DIR
49+ # User-defined
50+ INCLUDES += -I$(LUA_DIR)/include
51+ LUA__LIB = $(LUA_DIR)/lib/liblua.a
52+lua-lib:
53+ @echo ""
54+ @echo "Adding external Lua library to lib$(AOTUS_LIB).*"
55+ @echo "Extracting $(LUA_DIR)/lib/liblua.a"
56+ @echo ""
57+ $(AR) -x $(LUA__LIB)
58+
59+else
60+
61+ # lua-sources shipped
62+ LUA_DIR = external/lua-$(EXTERNAL_LUA_V)
63+ INCLUDES += -I$(LUA_DIR)/src
64+ LUA__LIB = $(LUA_DIR)/src/liblua.a
65+lua-lib:
66+ mkdir -p external
67+ cp -rf $(TOP_DIR)/$(LUA_DIR) external/
68+ $(MAKE) -C $(LUA_DIR) $(PLATFORM)
69+ $(AR) -x $(LUA__LIB)
70+
71+# Ensure the Lua-library is built first
72+$(LIBRARIES): |lua-lib
73+
74+# Add cleaning target
75+.PHONY: clean-lua-lib
76+clean-lua-lib:
77+ $(MAKE) -C $(LUA_DIR) clean
78+ -rm -f *.o
79+
80+clean: clean-lua-lib
81+
82+endif
83+
84+
85+# Add the LuaFortran files
86+include $(TOP_DIR)/LuaFortran/Makefile.inc
87+
88+# Add source files
89+include $(TOP_DIR)/source/Makefile.inc
90+# Add source/extdouble files
91+include $(TOP_DIR)/source/extdouble/Makefile.inc
92+# Add source/quadruple files
93+include $(TOP_DIR)/source/quadruple/Makefile.inc
94+
95+
96+# Ensure that all objects are required for the libraries
97+$(LIBRARIES): $(OBJECTS)
Show on old repository browser