OBJECTS = JessStr.o JessStrOS.o JessStrCP.o MaraHash.o
FLAGS = -O2 -Wall
#FLAGS = -g

all: tests mtest

romfs:

clean:
	rm -f core $(OBJECTS) tests mtest

#MaraHash.o: JessStr.h MaraHash.c
#	$(CC) -c $(FLAGS) -o MaraHash.o MaraHash.c
#
#JessStr.o: JessStr.h JessStr.c
#	$(CC) -c $(FLAGS) -o JessStr.o JessStr.c 
#
#JessStrOS.o: JessStr.h JessStrOS.c
#	$(CC) -c $(FLAGS) -o JessStrOS.o JessStrOS.c 
#
#JessStrCP.o: JessStr.h JessStrCP.c
#	$(CC) -c $(FLAGS) -o JessStrCP.o JessStrCP.c 
#
#mtest.o: mtest.c
#	$(CC) -c $(FLAGS) -o mtest.o mtest.c
#
#tests.o: tests.c
#	$(CC) -c $(FLAGS) -o tests.o tests.c

mtest: mtest.o $(OBJECTS)
	$(CC) $(LDFLAGS) -o $@ mtest.o $(OBJECTS) $(LDLIBS)

tests: tests.o $(OBJECTS)
	$(CC) $(LDFLAGS) -o $@ tests.o $(OBJECTS) $(LDLIBS)

#onetime: $(OBJECTS) kiwi.h config.h onetime.c do_scramble.o cryptdate.o
#	$(CC) $(FLAGS) -o onetime onetime.c do_scramble.o cryptdate.o

