Rev 1025 | Rev 1051 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
558 | giacomo | 1 | include $(BASE)/shark.cfg |
2 | |||
3 | CPP = gcc |
||
4 | CC = gcc |
||
5 | AS = gcc |
||
6 | LD = ld |
||
7 | AR = ar |
||
8 | |||
969 | pj | 9 | INCL = -I$(BASE)/include -I$(BASE)/modules |
558 | giacomo | 10 | LIB_PATH = $(BASE)/lib |
11 | OSLIB = $(BASE)/oslib |
||
12 | OSLIB_PATH = $(OSLIB)/lib |
||
13 | LIB_DIR = $(BASE)/lib |
||
14 | |||
15 | LIBRARYPATHNAME= $(LIB_PATH)/lib$(LIBRARY).a |
||
16 | LIBRARYDIR= $(LIB_PATH) |
||
17 | LIBRARYOBJS= $(LIB_OBJS) |
||
18 | |||
598 | giacomo | 19 | CFG_OPT = -D__LINUX__ |
573 | giacomo | 20 | |
558 | giacomo | 21 | ifeq ($(TSC),TRUE) |
22 | CFG_OPT += -D__TSC__ |
||
23 | ifeq ($(APIC),TRUE) |
||
24 | CFG_OPT += -D__APIC__ |
||
25 | endif |
||
26 | endif |
||
27 | |||
28 | ifeq ($(findstring VM86,$(BIOS)) , VM86) |
||
29 | CFG_OPT += -DVM86 |
||
30 | endif |
||
31 | |||
623 | giacomo | 32 | ifeq ($(findstring FORCE_PXC,$(FG)) , FORCE_PXC) |
33 | CFG_OPT += -D__FORCE_PXC__ |
||
34 | endif |
||
35 | |||
1037 | tullio | 36 | ifeq ($(findstring SHARK_FS,$(YES)) , SHARK_FS) |
37 | CFG_OPT += -D__SHARK_FS_SUPPORT__ |
||
38 | endif |
||
39 | |||
558 | giacomo | 40 | ifeq ($(findstring NEW,$(TRACER)) , NEW) |
598 | giacomo | 41 | ifeq ($(TSC),TRUE) |
558 | giacomo | 42 | CFG_OPT += -D__NEW_TRACER__ |
43 | endif |
||
598 | giacomo | 44 | endif |
558 | giacomo | 45 | ifeq ($(findstring OLD,$(TRACER)) , OLD) |
46 | CFG_OPT += -D__OLD_TRACER__ |
||
47 | endif |
||
48 | INCL += -I$(BASE)/tracer/include |
||
49 | |||
50 | ifeq ($(findstring VESA,$(FB)) , VESA) |
||
51 | CFG_VIDEO_OPT += -DCONFIG_FB_VESA -DCONFIG_LOGO |
||
52 | endif |
||
53 | ifeq ($(findstring FINDPCI,$(FB)) , FINDPCI) |
||
54 | CFG_VIDEO_OPT += -DCONFIG_FB_RIVA -DCONFIG_FB_RADEON -DCONFIG_FB_MATROX\ |
||
55 | -DCONFIG_LOGO -DCONFIG_FB_MATROX_G100 -DCONFIG_FB_MATROX_MILLENIUM\ |
||
56 | -DCONFIG_FB_MATROX_MYSTIQUE |
||
57 | endif |
||
58 | ifeq ($(findstring VGA16,$(FB)) , VGA16) |
||
59 | CFG_VIDEO_OPT += -DCONFIG_FB_VGA16 |
||
60 | endif |
||
61 | |||
62 | C_WARN = -Wimplicit-function-declaration -Wall |
||
63 | C_FLAGS = -O -fno-builtin -nostdinc |
||
969 | pj | 64 | C_INC = $(INCL) $(OTHERINCL) -I$(OSLIB) |
573 | giacomo | 65 | C_MAC = $(CFG_OPT) |
558 | giacomo | 66 | |
67 | ASM_WARN = |
||
68 | ASM_FLAGS = -x assembler-with-cpp |
||
969 | pj | 69 | ASM_INC = $(INCL) $(OTHERINCL) -I$(OSLIB) |
573 | giacomo | 70 | ASM_MAC = $(CFG_OPT) |
558 | giacomo | 71 | |
72 | LINK_OPT = -Bstatic -Ttext $(MEM_START) -s -nostartfiles -nostdlib -L$(LIB_PATH) -L$(OSLIB_PATH) |
||
73 | |||
74 | C_OPT = $(C_DEF) $(C_WARN) $(C_INC) $(C_MAC) $(C_FLAGS) |
||
75 | C_OUTPUT = -o $*.o |
||
76 | |||
77 | ASM_OPT = $(ASM_DEF) $(ASM_WARN) $(ASM_INC) $(ASM_MAC) $(ASM_FLAGS) |
||
78 | ASM_OUTPUT = -o $*.o |
||
79 | |||
80 | MKDIR = mkdir |
||
81 | CP = cp |
||
82 | CAT = cat |
||
83 | RM = rm -f |
||
84 | CD = cd |