2017-10-18 02:08:32 +02:00
|
|
|
FASM=fasm
|
2018-04-23 12:09:46 +02:00
|
|
|
CC=gcc
|
2020-02-19 22:59:16 +01:00
|
|
|
WARNINGS=-Wall -Wextra -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wjump-misses-init -Wshadow -Wformat=2 -Wswitch -Wswitch-enum #-Wconversion -Wsign-conversion
|
2020-02-06 04:26:14 +01:00
|
|
|
CFLAGS=$(WARNINGS) -g -O0 -D_FILE_OFFSET_BITS=64 -Wno-address-of-packed-member -DNDEBUG -masm=intel
|
2020-02-19 01:27:18 +01:00
|
|
|
CFLAGS_32=$(CFLAGS) -m32
|
2018-05-09 23:08:52 +02:00
|
|
|
LDFLAGS=
|
2020-02-21 03:21:09 +01:00
|
|
|
LDFLAGS_32=$(LDFLAGS) -m32
|
2017-10-18 02:08:32 +02:00
|
|
|
|
2020-03-08 03:02:53 +01:00
|
|
|
all: umka_shell umka_fuse umka.sym umka.prp umka.lst tags tools/mkdirrange tools/mkfilepattern covpreproc default.skn skin.skn
|
2020-01-29 11:53:13 +01:00
|
|
|
|
|
|
|
covpreproc: covpreproc.c
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
|
2017-10-18 02:08:32 +02:00
|
|
|
|
2020-02-20 04:41:53 +01:00
|
|
|
umka_shell: umka_shell.o umka.o trace.o trace_lbr.o vdisk.o lodepng.o
|
2020-02-21 03:21:09 +01:00
|
|
|
$(CC) $(LDFLAGS_32) $^ -o $@ -static
|
2017-10-18 02:08:32 +02:00
|
|
|
|
2020-02-20 04:41:53 +01:00
|
|
|
umka_fuse: umka_fuse.o umka.o vdisk.o
|
2020-02-21 03:21:09 +01:00
|
|
|
$(CC) $(LDFLAGS_32) $^ -o $@ `pkg-config fuse3 --libs`
|
2017-10-18 22:19:53 +02:00
|
|
|
|
2020-03-08 03:02:53 +01:00
|
|
|
umka.o umka.fas: umka.asm
|
2020-02-17 03:43:33 +01:00
|
|
|
INCLUDE="$(KOLIBRI)/kernel/trunk;$(KOLIBRI)/programs/develop/libraries/libcrash/trunk" $(FASM) $< umka.o -s umka.fas -m 1234567
|
2020-02-04 22:53:24 +01:00
|
|
|
|
2020-02-19 01:27:18 +01:00
|
|
|
lodepng.o: lodepng.c lodepng.h
|
|
|
|
$(CC) $(CFLAGS_32) -c $<
|
|
|
|
|
2020-03-08 03:02:53 +01:00
|
|
|
default.skn: $(KOLIBRI)/skins/Leency/Shkvorka/default.asm
|
|
|
|
$(FASM) $< $@
|
|
|
|
|
2020-02-04 22:53:24 +01:00
|
|
|
skin.skn: $(KOLIBRI)/skins/Leency/Octo_flat/default.asm
|
|
|
|
$(FASM) $< $@
|
2019-10-09 01:35:47 +02:00
|
|
|
|
2020-02-17 03:43:33 +01:00
|
|
|
umka.prp: umka.fas
|
|
|
|
prepsrc $< $@
|
2019-10-30 22:54:12 +01:00
|
|
|
|
2020-02-17 03:43:33 +01:00
|
|
|
umka.sym: umka.fas
|
|
|
|
symbols $< $@
|
2019-10-09 01:35:47 +02:00
|
|
|
|
2020-02-17 03:43:33 +01:00
|
|
|
umka.lst: umka.fas
|
|
|
|
listing $< $@
|
2019-10-09 01:35:47 +02:00
|
|
|
|
2020-02-17 03:43:33 +01:00
|
|
|
tags: umka.sym
|
2019-10-31 21:26:53 +01:00
|
|
|
fasmtags.py $<
|
|
|
|
|
2019-10-09 01:35:47 +02:00
|
|
|
trace.o: trace.c trace.h trace_lbr.h
|
2020-02-21 03:21:09 +01:00
|
|
|
$(CC) $(CFLAGS_32) -c $<
|
2019-10-09 01:35:47 +02:00
|
|
|
|
|
|
|
trace_lbr.o: trace_lbr.c trace_lbr.h kolibri.h
|
2020-02-21 03:21:09 +01:00
|
|
|
$(CC) $(CFLAGS_32) -c $<
|
2019-10-09 01:35:47 +02:00
|
|
|
|
2020-02-20 04:41:53 +01:00
|
|
|
vdisk.o: vdisk.c
|
2020-02-21 03:21:09 +01:00
|
|
|
$(CC) $(CFLAGS_32) -c $<
|
2017-10-18 02:08:32 +02:00
|
|
|
|
2020-02-17 03:43:33 +01:00
|
|
|
umka_shell.o: umka_shell.c kolibri.h trace.h syscalls.h
|
2020-02-21 03:21:09 +01:00
|
|
|
$(CC) $(CFLAGS_32) -c $< -std=c99 -D_POSIX_C_SOURCE=2
|
2019-10-13 03:17:29 +02:00
|
|
|
|
2020-02-17 03:43:33 +01:00
|
|
|
umka_fuse.o: umka_fuse.c kolibri.h
|
2020-02-21 03:21:09 +01:00
|
|
|
$(CC) $(CFLAGS_32) `pkg-config fuse3 --cflags` -c $< -std=gnu99
|
2018-05-09 23:08:52 +02:00
|
|
|
|
|
|
|
tools/mkdirrange: tools/mkdirrange.c
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
|
2017-10-18 02:08:32 +02:00
|
|
|
|
2018-06-18 03:55:51 +02:00
|
|
|
tools/mkfilepattern: tools/mkfilepattern.c
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
|
|
|
|
|
2017-10-18 22:19:53 +02:00
|
|
|
.PHONY: all clean
|
2017-10-18 02:08:32 +02:00
|
|
|
|
|
|
|
clean:
|
2020-02-17 03:43:33 +01:00
|
|
|
rm -f *.o umka_shell umka_fuse umka.fas umka.sym umka.lst umka.prp coverage tools/mkdirrange tools/mkfilepattern
|
2017-10-18 02:08:32 +02:00
|
|
|
|