2008-07-04 20:52:25 +02:00
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
FASM = e:/fasm/fasm.exe
|
|
|
|
CFLAGS = -c -O2 -fomit-frame-pointer -fno-builtin-printf
|
|
|
|
LDRHD = -shared -T ld.x -s --file-alignment 32
|
|
|
|
|
2009-02-11 07:52:01 +01:00
|
|
|
INCLUDES = -I ../../include
|
2008-12-13 04:32:16 +01:00
|
|
|
|
2009-02-11 07:52:01 +01:00
|
|
|
HFILES:= ../../include/types.h \
|
|
|
|
../../include/syscall.h \
|
|
|
|
../../include/pci.h \
|
2009-02-08 19:41:45 +01:00
|
|
|
atihw.h \
|
2008-12-13 04:32:16 +01:00
|
|
|
accel_2d.h \
|
|
|
|
r5xx_regs.h \
|
2008-10-26 21:09:43 +01:00
|
|
|
radeon_microcode.h
|
2008-07-04 20:52:25 +02:00
|
|
|
|
2008-10-13 23:02:35 +02:00
|
|
|
SRC_DEP:= init.c \
|
|
|
|
pci.c \
|
|
|
|
ati_mem.c \
|
2008-10-26 21:09:43 +01:00
|
|
|
init_cp.c \
|
|
|
|
init_3d.inc \
|
|
|
|
blend.inc \
|
2008-07-04 20:52:25 +02:00
|
|
|
r500.inc \
|
2008-10-13 23:02:35 +02:00
|
|
|
pixmap.inc \
|
2009-01-27 01:31:09 +01:00
|
|
|
accel_2d.inc
|
2008-07-04 20:52:25 +02:00
|
|
|
|
2008-10-13 23:02:35 +02:00
|
|
|
ATI_SRC:= ati2d.c
|
2008-07-04 20:52:25 +02:00
|
|
|
|
|
|
|
ATI_OBJ:= ati2d.obj
|
|
|
|
|
|
|
|
|
|
|
|
ATI_OBJ = $(patsubst %.s, %.obj, $(patsubst %.asm, %.obj,\
|
|
|
|
$(patsubst %.c, %.obj, $(ATI_SRC))))
|
|
|
|
|
|
|
|
|
|
|
|
ATI2D = ati2d.dll
|
|
|
|
|
|
|
|
all: $(ATI2D)
|
|
|
|
|
|
|
|
$(ATI2D): $(ATI_OBJ) $(SRC_DEP) $(HFILES) Makefile
|
2009-02-11 07:52:01 +01:00
|
|
|
wlink name ati2d.dll SYS nt_dll lib libdrv op offset=0 op nod op maxe=25 op el op STUB=stub.exe op START=_drvEntry @ati2d.lk
|
2008-07-04 20:52:25 +02:00
|
|
|
kpack.exe ati2d.dll ati2d.drv
|
|
|
|
|
2008-10-16 14:00:10 +02:00
|
|
|
ati2d.obj : ati2d.c $(SRC_DEP) $(HFILES) Makefile
|
2008-12-13 04:32:16 +01:00
|
|
|
$(CC) $(INCLUDES) $(CFLAGS) -o ati2d.obj ati2d.c
|
2008-07-04 20:52:25 +02:00
|
|
|
|
|
|
|
curhelp.obj : curhelp.asm
|
|
|
|
$(FASM) curhelp.asm
|
|
|
|
|
|
|
|
%.obj : %.c $(HFILES)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
%.obj: %.asm
|
|
|
|
as -o $@ $<
|
|
|
|
|
|
|
|
|