Skip to content

Commit

Permalink
Simplify Makefile (#62)
Browse files Browse the repository at this point in the history
Remove intermediate steps
  • Loading branch information
probonopd authored Aug 8, 2024
1 parent afd56c6 commit ffbfd2e
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/runtime/Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
CC = gcc
CFLAGS = -std=gnu99 -Os -D_FILE_OFFSET_BITS=64 -DGIT_COMMIT=\"${GIT_COMMIT}\" -T data_sections.ld -ffunction-sections -fdata-sections -Wl,--gc-sections -static -Wall -Werror
LIBS = -lsquashfuse -lsquashfuse_ll -lzstd -lz
LIBS = -lsquashfuse -lsquashfuse_ll -lzstd -lz -lfuse3

all: runtime

# Compile runtime
runtimey.o: runtime.c
$(CC) -I/usr/local/include/squashfuse -I/usr/include/fuse -o runtime.o -c $(CFLAGS) $^

runtime: runtime.o
$(CC) $(CFLAGS) $^ $(LIBS) -lfuse -o runtime

runtime.o: runtime.c
$(CC) -I/usr/local/include/squashfuse -I/usr/include/fuse3 -o runtime.o -c $(CFLAGS) $^

runtime: runtime.o
$(CC) $(CFLAGS) $^ $(LIBS) -lfuse3 -o runtime
runtime: runtime.c
$(CC) -I/usr/local/include/squashfuse -I/usr/include/fuse3 $(CFLAGS) $^ $(LIBS) -o $@

clean:
rm -f *.o runtime
rm -f runtime

0 comments on commit ffbfd2e

Please sign in to comment.