Move the built lib files from build/<arch>/lib/<libname>/<libname>.so to
[newos.git] / make.config
blobd0d2cb2bada0d82146a703b1a7df45bd1b3bc653
1 STDINCLUDE := -Iinclude -Iinclude/libc -Iinclude/libc++ $(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         libsupc++.so \
18         libsupc++.a \
19         libwin.so \
20         libwin.a \
21         klibc.o \
22 )       
23 LIBGLUE := $(LIBS_BUILD_DIR)/libglue.o
24 LIBS_LDSCRIPT := $(LIBS_DIR)/ldscripts/$(ARCH)/library.ld
25 LIBC := $(LIBS_BUILD_DIR)/libc.so
26 LIBC_STATIC := $(LIBS_BUILD_DIR)/libc.a
27 LIBNEWOS_STATIC := $(LIBS_BUILD_DIR)/libnewos.a
28 #$(warning LIBS = $(LIBS))
30 KERNEL_DIR := kernel
31 KERNEL_BUILD_DIR := $(call TOBUILDDIR, kernel)
32 KERNEL := $(KERNEL_BUILD_DIR)/kernel
33 LIBKERNEL := $(KERNEL_BUILD_DIR)/kernel.so
34 KLIBS := $(LIBS_BUILD_DIR)/klibc.o
35 KERNEL_CFLAGS := $(KERNEL_CFLAGS) -D_KERNEL=1
36 #$(warning KERNEL = $(KERNEL))
38 KERNEL_ADDONS_DIR := kernel/addons
39 KERNEL_ADDONS_BUILD_DIR := $(KERNEL_BUILD_DIR)/addons
40 KERNEL_ADDONS := $(addprefix $(KERNEL_ADDONS_BUILD_DIR)/, \
41         fs/fat/fat \
42         fs/iso9660/iso9660 \
43         fs/nfs/nfs \
44         fs/zfs/zfs \
45         dev/tty/tty \
46         dev/console/console \
49 APPS_DIR := apps
50 APPS_BUILD_DIR := $(call TOBUILDDIR, apps)
51 APPS_LDSCRIPT = $(APPS_DIR)/ldscripts/$(ARCH)/app.ld
52 APPSGLUE := $(LIBS_BUILD_DIR)/glue.o
53 APPS := $(addprefix $(APPS_BUILD_DIR)/, \
54         cpptest/cpptest \
55         false/false \
56         fibo/fibo \
57         fortune/fortune \
58         init/init \
59         ls/ls \
60         mount/mount \
61         rld/rld.so \
62         rldtest/rldtest \
63         shell/shell \
64         test_output/test_output \
65         test_input/test_input \
66         test_time/test_time \
67         testapp/testapp \
68         true/true \
69         unmount/unmount \
70         vmtest/vmtest \
71         vtcolors/vtcolors \
72         rm/rm\
73         ps/ps \
74         kill/kill \
75         top/top \
76         netcfg/netcfg \
77         nettest/nettest \
78         irc/irc \
79         consoled/consoled \
80         socketd/socketd \
81         telnetd/telnetd \
82         inputd/inputd \
83         window_server/window_server \
84         guiapp/guiapp \
85         disktest/disktest \
86         vmstat/vmstat \
88 ULIBS := \
89         $(LIBS_BUILD_DIR)/libc.so \
90         $(LIBS_BUILD_DIR)/libm.so \
91         $(LIBS_BUILD_DIR)/libnewos.so \
92         $(LIBS_BUILD_DIR)/libsocket.so \
93         $(LIBS_BUILD_DIR)/libsupc++.so \
94         $(LIBS_BUILD_DIR)/libwin.so
96 ULIB_PATHS :=
97 #$(warning APPS = $(APPS))
99 STATICFILES_DIR := $(call TOBUILDDIR, static)
100 STATICFILES := $(addprefix $(STATICFILES_DIR)/, \
103 FINAL := $(call TOBUILDDIR, final)
104 #$(warning FINAL = $(FINAL))
106 include make.config.$(ARCH)
108 ALL := \
109         $(KERNEL) \
110         $(KERNEL_ADDONS) \
111         $(APPS) \
112         $(LIBS)
114 #$(warning ALL = $(ALL))