welcome to memory model land.
[newos.git] / config / make.config
blobe0074c3a3c6521fc68d3b45bd0fdac6c55094d36
1 STDINCLUDE := -Iinclude $(LIBGCC_INCLUDE)
2 GLOBAL_CFLAGS := $(GLOBAL_CFLAGS) -include include/newos/sysconfig.h
4 LIBS_DIR := lib
5 LIBS_BUILD_DIR := $(call TOBUILDDIR, lib)
6 LIBS := $(addprefix $(LIBS_BUILD_DIR)/, \
7         glue.o \
8         libglue.o \
9         libc.so \
10         libc.a \
11         libm.so \
12         libm.a \
13         libnewos.so \
14         libnewos.a \
15         libsocket.so \
16         libsocket.a \
17         libwin.so \
18         libwin.a \
19         klibc.o \
20 )       
21 LIBGLUE := $(LIBS_BUILD_DIR)/libglue.o
22 LIBS_LDSCRIPT := $(LIBS_DIR)/ldscripts/$(ARCH)/library.ld
23 LIBC := $(LIBS_BUILD_DIR)/libc.so
24 LIBC_STATIC := $(LIBS_BUILD_DIR)/libc.a
25 LIBNEWOS_STATIC := $(LIBS_BUILD_DIR)/libnewos.a
26 #$(warning LIBS = $(LIBS))
28 KERNEL_DIR := kernel
29 KERNEL_BUILD_DIR := $(call TOBUILDDIR, kernel)
30 KERNEL := $(KERNEL_BUILD_DIR)/kernel
31 LIBKERNEL := $(KERNEL_BUILD_DIR)/kernel.so
32 KLIBS := $(LIBS_BUILD_DIR)/klibc.o
33 KERNEL_CFLAGS := $(KERNEL_CFLAGS) -D_KERNEL=1
34 #$(warning KERNEL = $(KERNEL))
36 KERNEL_ADDONS_DIR := kernel/addons
37 KERNEL_ADDONS_BUILD_DIR := $(KERNEL_BUILD_DIR)/addons
38 KERNEL_ADDONS := $(addprefix $(KERNEL_ADDONS_BUILD_DIR)/, \
39         fs/fat/fat \
40         fs/iso9660/iso9660 \
41         fs/nfs/nfs \
42         fs/zfs/zfs \
43         dev/tty/tty \
44         dev/console/console \
47 APPS_DIR := apps
48 APPS_BUILD_DIR := $(call TOBUILDDIR, apps)
49 APPS_LDSCRIPT = $(APPS_DIR)/ldscripts/$(ARCH)/app.ld
50 APPSGLUE := $(LIBS_BUILD_DIR)/glue.o
51 APPS := $(addprefix $(APPS_BUILD_DIR)/, \
52         cpptest/cpptest \
53         false/false \
54         fibo/fibo \
55         fortune/fortune \
56         init/init \
57         ls/ls \
58         mount/mount \
59         rld/rld.so \
60         rldtest/rldtest \
61         shell/shell \
62         test_output/test_output \
63         test_input/test_input \
64         test_time/test_time \
65         testapp/testapp \
66         true/true \
67         unmount/unmount \
68         vmtest/vmtest \
69         vtcolors/vtcolors \
70         rm/rm\
71         ps/ps \
72         kill/kill \
73         top/top \
74         netcfg/netcfg \
75         nettest/nettest \
76         irc/irc \
77         consoled/consoled \
78         socketd/socketd \
79         telnetd/telnetd \
80         inputd/inputd \
81         window_server/window_server \
82         guiapp/guiapp \
83         disktest/disktest \
84         vmstat/vmstat \
85         sleep/sleep \
88 $(APPS):: $(LIBS)
90 ULIB_PATHS :=
91 #$(warning APPS = $(APPS))
93 STATICFILES_DIR := $(call TOBUILDDIR, static)
94 STATICFILES := $(addprefix $(STATICFILES_DIR)/, \
97 ALL_LIST = \
98         $(KERNEL) \
99         $(KERNEL_ADDONS) \
100         $(APPS) \
101         $(LIBS)
103 -include config/arch/make.config.$(ARCH)
104 -include config/platform/make.config.$(PLATFORM)
105 -include config/target/make.config.$(TARGET)
107 ALL := \
108         $(ALL_LIST)
110 #$(warning ALL = $(ALL))