]> err.no Git - sope/blob - libFoundation/examples/GNUmakefile
tweaked layout
[sope] / libFoundation / examples / GNUmakefile
1 #  GNUmakefile.gnustep
2 #
3 #  Copyright (C) 1995, 1996, 1997 Ovidiu Predescu and Mircea Oancea.
4 #  All rights reserved.
5 #
6 #  Author: Ovidiu Predescu <ovidiu@net-community.com>
7 #  Date: October 1997
8 #
9 #  This file is part of libFoundation.
10 #
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
15 #  documentation.
16 #
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.
23 #
24
25 -include ../gsfix.make
26
27 ifeq ($(GNUSTEP_SYSTEM_ROOT),)
28
29 $(warning ERROR: Your $(GNUSTEP_SYSTEM_ROOT) environment variable is empty !)
30 $(error Please try again after running ". $(GNUSTEP_MAKEFILES)/GNUstep.sh")
31
32 else
33
34 # ZNeK: hardcoded this due to removal of support for other runtimes
35 OBJC_RUNTIME=GNU
36
37 GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_SYSTEM_ROOT)
38
39 include $(GNUSTEP_MAKEFILES)/common.make
40
41 ifeq ($(gc), yes)
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)
48 endif
49 else # $(gc) == no
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)
52 endif
53
54 ADDITIONAL_LIB_DIRS = \
55         -L../Foundation/$(GNUSTEP_OBJ_DIR) \
56
57 SYSTEM_LIB_DIR += \
58         -L/usr/local/lib -L/usr/lib
59
60 ADDITIONAL_INCLUDE_DIRS = \
61         -I..    \
62         -I../Foundation/$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)/$(OBJC_RUNTIME)
63
64 TOOL_NAME = Defaults
65
66 ifeq ($(examples),yes)
67 TOOL_NAME += fmls fmrm printenv chkdict
68 endif
69
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
75
76 ADDITIONAL_TOOL_LIBS += -lFoundation
77
78 include $(GNUSTEP_MAKEFILES)/tool.make
79
80 include fhs.make
81
82 endif