/
Makefile
56 lines (43 loc) · 1.54 KB
/
Makefile
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
# Makefile
#
# Copyright (C) 2009 Francesco Abbate
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
GSH_BASE_DIR = ..
include $(GSH_BASE_DIR)/makeconfig
include $(GSH_BASE_DIR)/make-system-detect
include $(GSH_BASE_DIR)/makepackages
include $(GSH_BASE_DIR)/makedefs
INCLUDES += -I$(GSH_BASE_DIR)
LIBS += $(PTHREAD_LIBS)
DEFS += $(PTHREAD_DEFS) $(GSL_SHELL_DEFS)
CFLAGS += $(LUA_CFLAGS)
LUAGSL_SRC_FILES = lua-properties.c gs-types.c lua-utils.c lua-gsl.c str.c fatal.c
LUAGSL_OBJ_FILES := $(LUAGSL_SRC_FILES:%.c=%.o)
DEP_FILES := $(LUAGSL_SRC_FILES:%.c=.deps/%.P)
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
TARGETS = libluagsl.a
all: $(TARGETS)
@$(HOST_CP) libluagsl.a $(GSH_LIBDIR)
libluagsl.a: $(LUAGSL_OBJ_FILES)
@echo Archive $@
@$(AR) $@ $?
@$(RANLIB) $@
include $(GSH_BASE_DIR)/makerules
.PHONY: clean all
clean:
$(HOST_RM) *.o *.lo *.la *.so *.dll $(TARGETS)
-include $(DEP_FILES)