CC = gcc
AS = nasmw

FLAGS = -O3 -march=pentium -fstrength-reduce -fomit-frame-pointer

OBJS =	romident.o unzip.o inflate.o crc32.o rifunct.o
OBJS2 =	makedat.o unzip.o inflate.o crc32.o rifunct.o
	
all: romident.exe makedat.exe

%.o: %.c
	$(CC) $(FLAGS) -o $@ -c $<

romident.exe: $(OBJS)
	$(CC) $(OBJS) -o romident.exe -s

makedat.exe: $(OBJS2)
	$(CC) $(OBJS2) -o makedat.exe -s

unzip.o: unzip.c unzip.h types.h

