3 # Copyright (C) 1995, 1996, 1997 Ovidiu Predescu and Mircea Oancea.
6 # Author: Ovidiu Predescu <ovidiu@net-community.com>
9 # This file is part of libFoundation.
11 # Permission to use, copy, modify, and distribute this software and its
12 # documentation for any purpose and without fee is hereby granted, provided
13 # that the above copyright notice appear in all copies and that both that
14 # copyright notice and this permission notice appear in supporting
17 # We disclaim all warranties with regard to this software, including all
18 # implied warranties of merchantability and fitness, in no event shall
19 # we be liable for any special, indirect or consequential damages or any
20 # damages whatsoever resulting from loss of use, data or profits, whether in
21 # an action of contract, negligence or other tortious action, arising out of
22 # or in connection with the use or performance of this software.
25 -include ../gsfix.make
27 ifeq ($(GNUSTEP_SYSTEM_ROOT),)
29 $(warning ERROR: Your $(GNUSTEP_SYSTEM_ROOT) environment variable is empty !)
30 $(error Please try again after running ". $(GNUSTEP_MAKEFILES)/GNUstep.sh")
34 # ZNeK: hardcoded this due to removal of support for other runtimes
37 GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_SYSTEM_ROOT)
39 include $(GNUSTEP_MAKEFILES)/common.make
42 ifeq ($(LIBFOUNDATION_WITH_GC), yes)
43 GNUSTEP_OBJ_DIR = $(GNUSTEP_OBJ_PREFIX)/$(GNUSTEP_TARGET_DIR)/$(OBJC_RUNTIME)-gc
44 GNUSTEP_OBJ_DIR_NAME = $(GNUSTEP_OBJ_PREFIX)/$(GNUSTEP_TARGET_DIR)/$(OBJC_RUNTIME)-gc
45 else # $(LIBFOUNDATION_WITH_GC) == no
46 GNUSTEP_OBJ_DIR = $(GNUSTEP_OBJ_PREFIX)/$(GNUSTEP_TARGET_DIR)/$(OBJC_RUNTIME)
47 GNUSTEP_OBJ_DIR_NAME = $(GNUSTEP_OBJ_PREFIX)/$(GNUSTEP_TARGET_DIR)/$(OBJC_RUNTIME)
50 GNUSTEP_OBJ_DIR = $(GNUSTEP_OBJ_PREFIX)/$(GNUSTEP_TARGET_DIR)/$(OBJC_RUNTIME)
51 GNUSTEP_OBJ_DIR_NAME = $(GNUSTEP_OBJ_PREFIX)/$(GNUSTEP_TARGET_DIR)/$(OBJC_RUNTIME)
54 ADDITIONAL_LIB_DIRS = \
55 -L../Foundation/$(GNUSTEP_OBJ_DIR) \
58 -L/usr/local/lib -L/usr/lib
60 ADDITIONAL_INCLUDE_DIRS = \
62 -I../Foundation/$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)/$(OBJC_RUNTIME)
66 ifeq ($(examples),yes)
67 TOOL_NAME += fmls fmrm printenv chkdict
70 Defaults_OBJC_FILES = Defaults.m
71 fmls_OBJC_FILES = fmls.m
72 fmrm_OBJC_FILES = fmrm.m
73 printenv_OBJC_FILES = printenv.m
74 chkdict_OBJC_FILES = chkdict.m
76 ADDITIONAL_TOOL_LIBS += -lFoundation
78 include $(GNUSTEP_MAKEFILES)/tool.make