2017-10-18 02:08:32 +02:00
|
|
|
FASM=fasm
|
2018-04-23 12:09:46 +02:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-m32 -Wall -Wextra -g -O0 -D_FILE_OFFSET_BITS=64
|
|
|
|
LDFLAGS=-m32
|
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
|
2018-04-23 12:09:46 +02:00
|
|
|
$(CC) $(LDFLAGS) $^ -o $@
|
2017-10-18 02:08:32 +02:00
|
|
|
|
2017-10-18 22:19:53 +02:00
|
|
|
kofuse: kofuse.o kocdecl.o
|
2018-04-23 12:09:46 +02:00
|
|
|
$(CC) $(LDFLAGS) $^ -o $@ `pkg-config fuse3 --libs`
|
2017-10-18 22:19:53 +02:00
|
|
|
|
2018-05-04 20:18:09 +02:00
|
|
|
kocdecl.o: kocdecl.asm kocdecl.h $(KERNEL_TRUNK)/fs/ext.inc $(KERNEL_TRUNK)/fs/xfs.inc $(KERNEL_TRUNK)/fs/xfs.asm
|
2018-05-06 21:58:05 +02:00
|
|
|
INCLUDE="$(KERNEL_TRUNK);$(KERNEL_TRUNK)/fs;$(KERNEL_TRUNK)/blkdev" $(FASM) $< $@ -m 1234567
|
2017-10-18 02:08:32 +02:00
|
|
|
|
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
|
|
|
|