#
# Makefile for minixfs and friends
#

TARGETDIR = ../bin

MINTINCLUDE = /home/fnaumann/mint-1.15/src/include

CC = gcc
AS = $(CC) -c
CFLAGS = \
	-I$(MINTINCLUDE) \
	-Wall -mshort -I. \
	-finline-functions \
	-fno-defer-pop \
	-fomit-frame-pointer \
	-fstrength-reduce \
	-O3

#
# top level
#
all: $(TARGETDIR)/flist $(TARGETDIR)/mfsconf

$(TARGETDIR)/flist: flist.c
	$(CC) -s -o $@ $(CFLAGS) flist.c

$(TARGETDIR)/mfsconf: mfsconf.c
	$(CC) -s -o $@ $(CFLAGS) mfsconf.c

clean: 
	rm -f *.o *~ core
