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.


APIC debugging
[palacios.git] / symmods / capsule / Makefile
1 ifeq ($(MOD_TYPE),V3_LINUX_MOD)
2         TYPE_IDX := 1
3 else ifeq ($(MOD_TYPE),V3_SYM_MOD)
4         TYPE_IDX := 2
5 else ifeq ($(MOD_TYPE),V3_SEC_MOD)
6         TYPE_IDX := 3
7 else 
8         TYPE_IDX := 0
9 endif
10
11 ifeq ($(MOD_ARCH),i386)
12         ARCH_IDX := 1
13 else ifeq ($(MOD_ARCH),x86_64)
14         ARCH_IDX := 2
15 else 
16         ARCH_IDX := 0
17 endif
18
19
20
21 DEFS := -DMOD_NAME=$(MOD_NAME) \
22         -DMOD_DIR=$(MOD_DIR) \
23         -DMOD_OBJ=$(MOD_OBJ) \
24         -DMOD_TYPE=$(TYPE_IDX) \
25         -DMOD_ARCH=$(ARCH_IDX)
26
27
28 #       cpp -undef $(DEFS) binary.S -o $(MOD_DIR)/.tmp.binary.S
29 #       cpp $(DEFS) $(MOD_DIR)/.tmp.binary.S
30
31 CFLAGS := -fno-stack-protector -Wall -O -Werror -fPIC -mno-red-zone
32
33 module: FORCE
34         cpp -undef $(DEFS) binary.S -o $(MOD_DIR)/.tmp.binary.S
35         gcc $(CFLAGS) $(DEFS) -c $(MOD_DIR)/.tmp.binary.S -o $(MOD_DIR)/$(MOD_NAME).vo
36         rm -f $(MOD_DIR)/.tmp.binary.S
37
38 FORCE: