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
|
ifeq ($(SRC_EDITOR_PROJECT),)
SRC_EDITOR_PROJECT=True
ifeq ($(BASE_DIR),)
include ../Makefile.common
BASE_DIR=$(shell pwd)
SRC_EDITOR_ROOT=True
endif
SRC_EDITOR_BASE_DIR := $(BASE_DIR)
BASE_DIR=$(SRC_EDITOR_BASE_DIR)/../common
include $(BASE_DIR)/Makefile.common
BASE_DIR=$(SRC_EDITOR_BASE_DIR)/../kernel
include $(BASE_DIR)/Makefile.kernel
BASE_DIR=$(SRC_EDITOR_BASE_DIR)/../vsearch
include $(BASE_DIR)/Makefile.vsearch
BASE_DIR=$(SRC_EDITOR_BASE_DIR)/../aliases
include $(BASE_DIR)/Makefile.aliases
SRC_EDITOR_SRC_DIRS = $(SRC_EDITOR_BASE_DIR)/src
SRC_DIRS += $(SRC_EDITOR_SRC_DIRS)
C_SRCS = \
$(foreach name,$(SRC_EDITOR_SRC_DIRS),$(notdir $(wildcard $(name)/*$(C_EXT))))
SRC_EDITOR_SRCS := \
$(foreach name,$(SRC_EDITOR_SRC_DIRS),$(notdir $(wildcard $(name)/*$(C_EXT))))
SRC_EDITOR_OBJ_DIR = $(SRC_EDITOR_BASE_DIR)/obj
OBJ_DIR = $(SRC_EDITOR_OBJ_DIR)
CFLAGS = -g -O2
ADA_SOURCES = src.adb
PROJECT_FILE = src_editor
ifneq ($(strip $(SRC_EDITOR_SRCS)),)
LIBS := $(SRC_EDITOR_OBJ_DIR)/libsrc_editor$(AR_EXT) $(LIBS)
endif
ifeq ($(SRC_EDITOR_ROOT),True)
include ../builder/src/Makefile.generic
else
DEPS_PROJECTS += $(SRC_EDITOR_BASE_DIR)/src_editor
endif
endif
|