Rev 1313 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1313 | Rev 1404 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | CC = gcc |
1 | CC = gcc |
2 | FASM = e:/fasm/fasm.exe |
2 | FASM = e:/fasm/fasm.exe |
- | 3 | ||
3 | CFLAGS = -c -O2 -fomit-frame-pointer -fno-builtin-printf |
4 | DEFINES = -D__KERNEL__ -DCONFIG_X86_32 |
4 | LDFLAGS = -nostdlib -shared -s -Map atikms.map --image-base 0 --file-alignment 512 --section-alignment 4096 |
- | |
Line 5... | Line 5... | ||
5 | 5 | ||
6 | DRM_TOPDIR = $(CURDIR)/.. |
6 | DRM_TOPDIR = $(CURDIR)/.. |
Line -... | Line 7... | ||
- | 7 | DRM_INCLUDES = $(DRM_TOPDIR)/includes |
|
- | 8 | ||
- | 9 | INCLUDES = -I$(DRM_INCLUDES) -I$(DRM_INCLUDES)/drm \ |
|
- | 10 | -I$(DRM_INCLUDES)/linux -I$(DRM_INCLUDES)/asm |
|
- | 11 | ||
7 | DRM_INCLUDES = $(DRM_TOPDIR)/includes |
12 | CFLAGS = -c -O2 $(INCLUDES) $(DEFINES) -march=i686 -fomit-frame-pointer -fno-builtin-printf |
Line 8... | Line 13... | ||
8 | 13 | ||
Line -... | Line 14... | ||
- | 14 | LIBPATH:= . |
|
9 | LIBPATH:= . |
15 | |
Line -... | Line 16... | ||
- | 16 | LIBS:= -ldrv -lcore |
|
10 | 17 | ||
Line 11... | Line 18... | ||
11 | LIBS:= -ldrv -lcore |
18 | LDFLAGS = -nostdlib -shared -s -Map atikms.map --image-base 0\ |
12 | 19 | --file-alignment 512 --section-alignment 4096 |
|
13 | NAME:= atikms |
20 | |
14 | 21 | ||
15 | INCLUDES = -I$(DRM_INCLUDES) -I$(DRM_INCLUDES)/linux -I$(DRM_INCLUDES)/drm |
22 | NAME:= atikms |
16 | 23 | ||
17 | HFILES:= $(DRM_INCLUDES)/linux/types.h \ |
24 | HFILES:= $(DRM_INCLUDES)/linux/types.h \ |
18 | $(DRM_INCLUDES)/linux/list.h \ |
25 | $(DRM_INCLUDES)/linux/list.h \ |
Line 34... | Line 41... | ||
34 | $(DRM_TOPDIR)/drm_modes.c \ |
41 | $(DRM_TOPDIR)/drm_modes.c \ |
35 | $(DRM_TOPDIR)/drm_crtc.c \ |
42 | $(DRM_TOPDIR)/drm_crtc.c \ |
36 | $(DRM_TOPDIR)/drm_crtc_helper.c \ |
43 | $(DRM_TOPDIR)/drm_crtc_helper.c \ |
37 | $(DRM_TOPDIR)/drm_fb_helper.c \ |
44 | $(DRM_TOPDIR)/drm_fb_helper.c \ |
38 | $(DRM_TOPDIR)/i2c/i2c-core.c \ |
45 | $(DRM_TOPDIR)/drm_dp_i2c_helper.c \ |
- | 46 | $(DRM_TOPDIR)/i2c/i2c-core.c \ |
|
39 | $(DRM_TOPDIR)/i2c/i2c-algo-bit.c \ |
47 | $(DRM_TOPDIR)/i2c/i2c-algo-bit.c \ |
40 | $(DRM_TOPDIR)/idr.c \ |
48 | $(DRM_TOPDIR)/idr.c \ |
41 | radeon_gem.c \ |
49 | $(DRM_TOPDIR)/list_sort.c \ |
42 | radeon_device.c \ |
50 | radeon_device.c \ |
43 | radeon_clocks.c \ |
51 | radeon_clocks.c \ |
44 | radeon_i2c.c \ |
52 | radeon_i2c.c \ |
45 | atom.c \ |
53 | atom.c \ |
46 | radeon_atombios.c \ |
54 | radeon_atombios.c \ |
47 | radeon_agp.c \ |
55 | radeon_agp.c \ |
48 | atombios_crtc.c \ |
56 | atombios_crtc.c \ |
49 | radeon_encoders.c \ |
57 | atombios_dp.c \ |
- | 58 | radeon_encoders.c \ |
|
50 | radeon_connectors.c \ |
59 | radeon_connectors.c \ |
51 | radeon_bios.c \ |
60 | radeon_bios.c \ |
52 | radeon_combios.c \ |
61 | radeon_combios.c \ |
53 | radeon_legacy_crtc.c \ |
62 | radeon_legacy_crtc.c \ |
54 | radeon_legacy_encoders.c \ |
63 | radeon_legacy_encoders.c \ |
55 | radeon_legacy_tv.c \ |
64 | radeon_legacy_tv.c \ |
56 | radeon_display.c \ |
65 | radeon_display.c \ |
57 | radeon_object.c \ |
66 | radeon_gart.c \ |
58 | radeon_gart.c \ |
- | |
59 | radeon_ring.c \ |
67 | radeon_ring.c \ |
60 | r100.c \ |
68 | radeon_object_kos.c \ |
- | 69 | radeon_gem.c \ |
|
- | 70 | r100.c \ |
|
61 | r200.c \ |
71 | r200.c \ |
62 | r300.c \ |
72 | r300.c \ |
63 | r420.c \ |
73 | r420.c \ |
64 | rv515.c \ |
74 | rv515.c \ |
65 | r520.c \ |
75 | r520.c \ |
66 | r600.c \ |
76 | r600.c \ |
67 | rs400.c \ |
77 | r600_audio.c \ |
- | 78 | r600_hdmi.c \ |
|
- | 79 | rs400.c \ |
|
68 | rs600.c \ |
80 | rs600.c \ |
69 | rs690.c \ |
81 | rs690.c \ |
70 | rv770.c \ |
82 | rv770.c \ |
71 | radeon_fb.c \ |
83 | radeon_fb.c \ |
72 | rdisplay.c \ |
84 | rdisplay.c \ |
Line 90... | Line 102... | ||
90 | ld -L$(LIBPATH) $(LDFLAGS) -T atikms.lds -o $@ $(NAME_OBJS) vsprintf.obj icompute.obj $(LIBS) |
102 | ld -L$(LIBPATH) $(LDFLAGS) -T atikms.lds -o $@ $(NAME_OBJS) vsprintf.obj icompute.obj $(LIBS) |
91 | 103 | ||
Line 92... | Line 104... | ||
92 | 104 | ||
93 | %.o : %.c $(HFILES) Makefile |
105 | %.o : %.c $(HFILES) Makefile |
Line 94... | Line 106... | ||
94 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ -c $< |
106 | $(CC) $(CFLAGS) $(DEFINES) -o $@ $< |
95 | 107 |