Subversion Repositories shark

Rev

Rev 1618 | 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
 
1621 fabio 9
INCL   = -I$(BASE)/include -I$(BASE)/modules -I$(BASE)/libc/arch/$(ARCH)/include
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
 
1073 tullio 62
ifeq ($(findstring GCC4,$(COMPILER)) , GCC4)
1061 tullio 63
# this options are for newer gcc4 compilers
1056 tullio 64
C_WARN       = -Wimplicit-function-declaration -Wno-attributes -Wno-pointer-sign -Wall
1081 tullio 65
C_FLAGS      = -O -fno-builtin -nostdinc -minline-all-stringops -fno-stack-protector
1073 tullio 66
endif
67
ifeq ($(findstring GCC3,$(COMPILER)) , GCC3)
68
C_WARN       = -Wimplicit-function-declaration -Wall
1081 tullio 69
C_FLAGS      = -O -fno-builtin -nostdinc -minline-all-stringops
1073 tullio 70
endif
71
ifeq ($(findstring DJGPP,$(COMPILER)) , DJGPP)
72
C_WARN       = -Wimplicit-function-declaration -Wall
1081 tullio 73
C_FLAGS      = -O -fno-builtin -nostdinc -minline-all-stringops
1073 tullio 74
endif
75
 
969 pj 76
C_INC        = $(INCL) $(OTHERINCL) -I$(OSLIB)
573 giacomo 77
C_MAC        = $(CFG_OPT)
558 giacomo 78
 
79
ASM_WARN     =
80
ASM_FLAGS    = -x assembler-with-cpp
969 pj 81
ASM_INC      = $(INCL) $(OTHERINCL) -I$(OSLIB)
573 giacomo 82
ASM_MAC      = $(CFG_OPT)
558 giacomo 83
 
1051 tullio 84
# added for dynalink [lex]
85
ifndef DYNALINK
558 giacomo 86
LINK_OPT = -Bstatic -Ttext $(MEM_START) -s -nostartfiles -nostdlib -L$(LIB_PATH) -L$(OSLIB_PATH)
1051 tullio 87
else
88
LINK_OPT = -Bstatic
89
endif
558 giacomo 90
 
91
C_OPT        = $(C_DEF) $(C_WARN) $(C_INC) $(C_MAC) $(C_FLAGS)
92
C_OUTPUT     = -o $*.o
93
 
94
ASM_OPT      = $(ASM_DEF) $(ASM_WARN) $(ASM_INC) $(ASM_MAC) $(ASM_FLAGS)
95
ASM_OUTPUT   = -o $*.o
96
 
97
MKDIR   = mkdir
98
CP	= cp
99
CAT	= cat
100
RM	= rm -f
101
CD	= cd