2009-07-04 15:29:02 +02:00
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
FASM = e:/fasm/fasm.exe
|
|
|
|
CFLAGS = -c -O2 -fomit-frame-pointer -fno-builtin-printf
|
|
|
|
LDFLAGS = -nostdlib -shared -s -Map atikms.map --image-base 0 --file-alignment 512 --section-alignment 4096
|
|
|
|
|
|
|
|
DRM_TOPDIR = $(CURDIR)/..
|
2009-09-28 10:42:03 +02:00
|
|
|
DRM_INCLUDES = $(DRM_TOPDIR)/includes
|
2009-07-04 15:29:02 +02:00
|
|
|
|
|
|
|
LIBPATH:= .
|
|
|
|
|
|
|
|
LIBS:= -ldrv -lcore
|
|
|
|
|
|
|
|
NAME:= atikms
|
|
|
|
|
2009-09-28 10:42:03 +02:00
|
|
|
INCLUDES = -I$(DRM_INCLUDES) -I$(DRM_INCLUDES)/linux -I$(DRM_INCLUDES)/drm
|
2009-07-04 15:29:02 +02:00
|
|
|
|
2009-09-26 16:08:05 +02:00
|
|
|
HFILES:= $(DRM_INCLUDES)/linux/types.h \
|
|
|
|
$(DRM_INCLUDES)/linux/list.h \
|
2009-07-04 15:29:02 +02:00
|
|
|
$(DRM_INCLUDES)/pci.h \
|
2009-10-21 11:33:33 +02:00
|
|
|
$(DRM_INCLUDES)/drm/drm.h \
|
2009-09-26 16:08:05 +02:00
|
|
|
$(DRM_INCLUDES)/drm/drmP.h \
|
2009-10-21 11:33:33 +02:00
|
|
|
$(DRM_INCLUDES)/drm/drm_edid.h \
|
2009-09-26 16:08:05 +02:00
|
|
|
$(DRM_INCLUDES)/drm/drm_crtc.h \
|
|
|
|
$(DRM_INCLUDES)/drm/drm_mode.h \
|
2009-09-28 10:42:03 +02:00
|
|
|
$(DRM_INCLUDES)/drm/drm_mm.h \
|
2009-07-05 11:51:42 +02:00
|
|
|
atom.h \
|
|
|
|
radeon.h \
|
2009-07-04 15:29:02 +02:00
|
|
|
radeon_asic.h
|
|
|
|
|
2009-07-05 11:51:42 +02:00
|
|
|
NAME_SRC= \
|
|
|
|
pci.c \
|
|
|
|
$(DRM_TOPDIR)/drm_mm.c \
|
2009-07-04 15:29:02 +02:00
|
|
|
$(DRM_TOPDIR)/drm_edid.c \
|
|
|
|
$(DRM_TOPDIR)/drm_modes.c \
|
|
|
|
$(DRM_TOPDIR)/drm_crtc.c \
|
|
|
|
$(DRM_TOPDIR)/drm_crtc_helper.c \
|
2009-09-26 16:08:05 +02:00
|
|
|
$(DRM_TOPDIR)/drm_fb_helper.c \
|
2009-07-04 15:29:02 +02:00
|
|
|
$(DRM_TOPDIR)/i2c/i2c-core.c \
|
|
|
|
$(DRM_TOPDIR)/i2c/i2c-algo-bit.c \
|
|
|
|
$(DRM_TOPDIR)/idr.c \
|
2009-07-05 11:51:42 +02:00
|
|
|
radeon_gem.c \
|
|
|
|
radeon_device.c \
|
|
|
|
radeon_clocks.c \
|
2009-07-04 15:29:02 +02:00
|
|
|
radeon_i2c.c \
|
|
|
|
atom.c \
|
2009-07-05 11:51:42 +02:00
|
|
|
radeon_atombios.c \
|
2009-10-21 11:33:33 +02:00
|
|
|
radeon_agp.c \
|
2009-07-04 15:29:02 +02:00
|
|
|
atombios_crtc.c \
|
|
|
|
radeon_encoders.c \
|
|
|
|
radeon_connectors.c \
|
2009-07-05 11:51:42 +02:00
|
|
|
radeon_bios.c \
|
2009-07-04 15:29:02 +02:00
|
|
|
radeon_combios.c \
|
|
|
|
radeon_legacy_crtc.c \
|
|
|
|
radeon_legacy_encoders.c \
|
2009-09-26 16:08:05 +02:00
|
|
|
radeon_legacy_tv.c \
|
2009-07-04 15:29:02 +02:00
|
|
|
radeon_display.c \
|
2009-07-05 11:51:42 +02:00
|
|
|
radeon_object.c \
|
|
|
|
radeon_gart.c \
|
|
|
|
radeon_ring.c \
|
|
|
|
r100.c \
|
2009-09-26 16:08:05 +02:00
|
|
|
r200.c \
|
2009-07-05 11:51:42 +02:00
|
|
|
r300.c \
|
2009-07-14 10:26:48 +02:00
|
|
|
r420.c \
|
2009-07-05 11:51:42 +02:00
|
|
|
rv515.c \
|
|
|
|
r520.c \
|
2009-07-14 10:26:48 +02:00
|
|
|
rs400.c \
|
|
|
|
rs600.c \
|
|
|
|
rs690.c \
|
2009-09-28 10:42:03 +02:00
|
|
|
radeon_fb.c \
|
|
|
|
rdisplay.c
|
2009-07-04 15:29:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
SRC_DEP:=
|
|
|
|
|
|
|
|
|
2009-09-26 16:08:05 +02:00
|
|
|
NAME_OBJS = $(patsubst %.s, %.o, $(patsubst %.asm, %.o,\
|
|
|
|
$(patsubst %.c, %.o, $(NAME_SRC))))
|
2009-07-04 15:29:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
all: $(NAME).dll
|
|
|
|
|
|
|
|
$(NAME).dll: $(NAME_OBJS) $(SRC_DEP) $(HFILES) atikms.lds Makefile
|
|
|
|
ld -L$(LIBPATH) $(LDFLAGS) -T atikms.lds -o $@ $(NAME_OBJS) vsprintf.obj icompute.obj $(LIBS)
|
|
|
|
|
|
|
|
|
2009-09-26 16:08:05 +02:00
|
|
|
%.o : %.c $(HFILES) Makefile
|
2009-07-04 15:29:02 +02:00
|
|
|
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ -c $<
|