2017-10-18 02:08:32 +02:00
|
|
|
FASM=fasm
|
2017-10-18 22:19:53 +02:00
|
|
|
CC=gcc -m32
|
|
|
|
CFLAGS=-Wall -g3 -O0 -D_FILE_OFFSET_BITS=64
|
2017-10-18 02:08:32 +02:00
|
|
|
|
2017-10-18 22:19:53 +02:00
|
|
|
all: kofu kofuse
|
2017-10-18 02:08:32 +02:00
|
|
|
|
2017-10-18 22:19:53 +02:00
|
|
|
kofu: kofu.o kocdecl.o
|
|
|
|
$(CC) $^ -o $@
|
2017-10-18 02:08:32 +02:00
|
|
|
|
2017-10-18 22:19:53 +02:00
|
|
|
kofuse: kofuse.o kocdecl.o
|
|
|
|
$(CC) $^ -o $@ `pkg-config fuse3 --libs`
|
|
|
|
|
|
|
|
kocdecl.o: kocdecl.asm xfs.inc xfs.asm
|
2017-10-18 02:08:32 +02:00
|
|
|
$(FASM) $< $@
|
|
|
|
|
2017-11-02 21:41:11 +01:00
|
|
|
kofu.o: kofu.c kocdecl.h
|
2017-10-18 22:19:53 +02:00
|
|
|
$(CC) $(CFLAGS) -c $<
|
2017-10-18 02:08:32 +02:00
|
|
|
|
2017-11-02 21:41:11 +01:00
|
|
|
kofuse.o: kofuse.c kocdecl.h
|
2017-10-18 22:19:53 +02:00
|
|
|
$(CC) $(CFLAGS) `pkg-config fuse3 --cflags` -c $<
|
2017-10-18 02:08:32 +02:00
|
|
|
|
2017-10-18 22:19:53 +02:00
|
|
|
.PHONY: all clean
|
2017-10-18 02:08:32 +02:00
|
|
|
|
|
|
|
clean:
|
2017-10-18 22:19:53 +02:00
|
|
|
rm -f *.o kofu kofuse
|
2017-10-18 02:08:32 +02:00
|
|
|
|