umka/makefile

28 lines
626 B
Makefile
Raw Normal View History

2017-10-18 02:08:32 +02:00
FASM=fasm
CC=gcc
CFLAGS=-m32 -Wall -Wextra -g -O0 -D_FILE_OFFSET_BITS=64
LDFLAGS=-m32
2017-10-18 02:08:32 +02:00
all: kofu kofuse
2017-10-18 02:08:32 +02:00
kofu: kofu.o kocdecl.o
$(CC) $(LDFLAGS) $^ -o $@
2017-10-18 02:08:32 +02:00
kofuse: kofuse.o kocdecl.o
$(CC) $(LDFLAGS) $^ -o $@ `pkg-config fuse3 --libs`
kocdecl.o: kocdecl.asm kocdecl.h $(KERNEL_TRUNK)/fs/ext.inc $(KERNEL_TRUNK)/fs/xfs.inc $(KERNEL_TRUNK)/fs/xfs.asm
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
$(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
$(CC) $(CFLAGS) `pkg-config fuse3 --cflags` -c $<
2017-10-18 02:08:32 +02:00
.PHONY: all clean
2017-10-18 02:08:32 +02:00
clean:
rm -f *.o kofu kofuse
2017-10-18 02:08:32 +02:00