#
# Makefile fuer ths-Filesystem
#
#
# THS
#
all: version ths.o

CC = gcc -D__KERNEL__
AS = as
CFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m486
.c.s:
	$(CC) $(CFLAGS) -S $<
.c.o:
	$(CC) $(CFLAGS) -c $<
.s.o:
	$(AS) -o $*.o $<


OBJS=	inode.o fat.o super.o divers.o dir.o transfer.o file.o modul.o kompr.o

version:
	echo 'char kernel_version[]="'`uname -r`'";' >version.h

ths.o: $(OBJS)
	$(LD) -r -o ths.o $(OBJS)

dep:
	$(CPP) -M *.c > .depend

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif

