##
## IRApc [IRA unofficial DOS Port by Antiriad/Raine]
##

CC	= gcc

CFLAGS	= -I. -Isource -fschedule-insns2 -fomit-frame-pointer \
	-frerun-cse-after-loop -funroll-all-loops -fexpensive-optimizations -ffast-math \
	-finline-functions -O6 -Wall -mcpu=pentium -march=pentium

OBJDIR	= object

LIBS	=

OBJS	= $(OBJDIR)/ira.o $(OBJDIR)/ira_2.o $(OBJDIR)/doshack.o

all: IRApc.exe

IRApc.exe: $(OBJS)
	$(CC) -s -o IRApc.exe $(OBJS) $(LIBS)
#	upx -9 IRApc.exe

## Rules for making object files

$(OBJDIR)/%.o: source/%.c
	$(CC) $(CFLAGS) -o $@ -c $<

clean:	del *.o
	del IRApc.exe

