1 |
#/************************************************************************** |
#/************************************************************************** |
2 |
# * |
# * |
3 |
# * DJGPP/MinGW makefile |
# * djgpp makefile |
4 |
# * |
# * |
5 |
# * treat "deltree /y" with care |
# * treat "deltree /y" with care |
6 |
# * |
# * |
|
# * |
|
|
# * $Id$ |
|
|
# * |
|
7 |
# *************************************************************************/ |
# *************************************************************************/ |
8 |
|
|
9 |
|
|
12 |
|
|
13 |
CC = gcc |
CC = gcc |
14 |
CFLAGS = -Wall -DARCH_X86 |
CFLAGS = -Wall -DARCH_X86 |
|
|
|
15 |
# CFLAGS += -funroll-loops -ffast-math -fstrict-aliasing -fomit-frame-pointer |
# CFLAGS += -funroll-loops -ffast-math -fstrict-aliasing -fomit-frame-pointer |
16 |
# CFLAGS += -fPIC |
# CFLAGS += -fPIC |
17 |
|
# CFLAGS += -m486 |
|
# Architecture options : Valid for every gcc version |
|
|
# Uncomment the one which you want to compile for |
|
|
|
|
|
# CFLAGS += -march=i386 -mcpu=i386 |
|
|
# CFLAGS += -march=i486 -mcpu=i486 |
|
|
# CFLAGS += -march=i586 -mcpu=i586 |
|
|
# CFLAGS += -march=i686 -mcpu=i686 |
|
18 |
# CFLAGS += -march=pentium -mcpu=pentium |
# CFLAGS += -march=pentium -mcpu=pentium |
19 |
# CFLAGS += -march=pentiumpro -mcpu=pentiumpro |
# CFLAGS += -march=pentiumpro -mcpu=pentiumpro |
20 |
|
|
|
# Architecture options : Valid for every gcc >= 3.1 |
|
|
# Uncomment the one which you want to compile for |
|
|
|
|
|
# CFLAGS += -march=pentium-mmx -mcpu=pentium-mmx |
|
|
# CFLAGS += -march=pentium3 -mcpu=pentium3 |
|
|
# CFLAGS += -march=pentium4 -mcpu=pentium4 |
|
|
# CFLAGS += -march=athlon -mcpu=athlon |
|
|
# CFLAGS += -march=k6 -mcpu=k6 |
|
|
# CFLAGS += -march=k6-2 -mcpu=k6-2 |
|
|
# CFLAGS += -march=k6-3 -mcpu=k6-3 |
|
|
# CFLAGS += -march=athlon-tbird -mcpu=athlon-tbird |
|
|
# CFLAGS += -march=athlon-xp -mcpu=athlon-xp |
|
|
# CFLAGS += -march=athlon-mp -mcpu=athlon-mp |
|
|
|
|
21 |
|
|
22 |
AS = nasm |
AS = nasm |
23 |
AFLAGS = -f coff -DPREFIX -DFORMAT_COFF |
AFLAGS = -f coff -DPREFIX -DFORMAT_COFF |
24 |
%.o: %.asm |
%.o: %.asm |
25 |
$(AS) $(AFLAGS) -I$(<D) $< -o $@ |
$(AS) $(AFLAGS) $< -o $@ |
26 |
|
|
27 |
|
|
28 |
RM = deltree /y |
RM = deltree /y |