Subversion Repositories Kolibri OS

Rev

Rev 1630 | Rev 1877 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1630 Rev 1764
Line 1... Line 1...
1
CC = gcc
1
CC = gcc
-
 
2
LD = ld
-
 
3
AS = as
2
FASM = e:/fasm/fasm.exe
4
FASM = e:/fasm/fasm.exe
Line 3... Line 5...
3
 
5
 
Line 4... Line 6...
4
DEFINES	 = -D__KERNEL__ -DCONFIG_X86_32 
6
DEFINES	 = -D__KERNEL__ -DCONFIG_X86_32 
Line 11... Line 13...
11
INCLUDES = 	-I$(DRV_INCLUDES) -I$(DRV_INCLUDES)/drm	\
13
INCLUDES = 	-I$(DRV_INCLUDES) -I$(DRV_INCLUDES)/drm	\
Line 12... Line 14...
12
		-I$(DRV_INCLUDES)/linux
14
		-I$(DRV_INCLUDES)/linux
13
 
15
 
Line 14... Line 16...
14
CFLAGS   = -c -O2 $(INCLUDES) $(DEFINES) -march=i686 -fomit-frame-pointer -fno-builtin-printf
16
CFLAGS   = -c -Os $(INCLUDES) $(DEFINES) -march=i486 -fomit-frame-pointer -fno-builtin-printf
Line 15... Line 17...
15
 
17
 
Line 16... Line 18...
16
LIBPATH:= $(DRV_TOPDIR)/ddk
18
LIBPATH:= $(DRV_TOPDIR)/ddk
Line 133... Line 135...
133
 
135
 
Line 134... Line 136...
134
all: $(NAME).dll
136
all: $(NAME).dll
135
 
137
 
Line 136... Line 138...
136
$(NAME).dll: $(NAME_OBJS) $(FW_BINS) $(SRC_DEP) $(HFILES) atikms.lds Makefile
138
$(NAME).dll: $(NAME_OBJS) $(FW_BINS) $(SRC_DEP) $(HFILES) $(LIBPATH)/libcore.a $(LIBPATH)/libddk.a atikms.lds Makefile
137
	ld -L$(LIBPATH) $(LDFLAGS) -T atikms.lds -o $@ $(NAME_OBJS) $(LIBS)  
139
	$(LD) -L$(LIBPATH) $(LDFLAGS) -T atikms.lds -o $@ $(NAME_OBJS) $(LIBS)  
Line 138... Line 140...
138
 
140
 
139
 
141
 
Line 140... Line 142...
140
%.o : %.c $(HFILES) Makefile
142
%.o : %.c $(HFILES) Makefile
141
	$(CC) $(CFLAGS) $(DEFINES) -o $@ $<
143
	$(CC) $(CFLAGS) $(DEFINES) -o $@ $<