Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Inadvertently missing makefile
[palacios.git] / nautilus / Makefile
1 include $(PWD)/../.config
2
3 NAUTILUS_DIR = $(subst ",,$(V3_CONFIG_NAUTILUS_KERN))
4
5 include $(NAUTILUS_DIR)/.config
6
7 CC = gcc
8 AR = ar
9
10
11 PALACIOS_CFLAGS = -I$(PWD)/../palacios/include -include $(PWD)/../palacios/include/autoconf.h
12
13 NAUTILUS_CFLAGS = -D__NAUTILUS__ -I$(NAUTILUS_DIR)/include -include $(NAUTILUS_DIR)/include/autoconf.h
14
15 NAUTILUS_CFLAGS +=      -O2 \
16                         -fno-omit-frame-pointer \
17                         -ffreestanding \
18                         -fno-stack-protector \
19                         -fno-strict-aliasing \
20                         -fwrapv \
21                         -mno-red-zone \
22                         -mcmodel=large \
23                         -Wall \
24                         -Wno-unused-function \
25                         -Wno-unused-variable \
26                         -fno-common \
27                         -std=gnu99 \
28                         $(call cc-option, -Wno-unused-but-set-variable,)
29
30
31 CFLAGS = -I. $(PALACIOS_CFLAGS) $(NAUTILUS_CFLAGS)
32
33 LDFLAGS := --whole-archive -z max-page-size=0x1000
34
35 OBJS = palacios-stubs.o  
36
37 ifdef V3_CONFIG_CONSOLE
38         OBJS += console.o
39 endif
40
41 libnautilus.a : $(OBJS) 
42         $(AR) ruv libnautilus.a $(OBJS)
43
44 %.o : %.c 
45         $(CC) $(CFLAGS) -c $< -o $@
46
47
48 all: libnautilus.a
49
50 clean:
51         rm -f *.o *.a
52
53