commit b4c94515de17e0426fe6bf3a6538e24f2cd3747b parent d3994fe353820da9e2524c80727ef259265670f7 Author: Yersa Nordman <finwo@pm.me> Date: Sun, 19 May 2024 22:17:49 +0200 Renamed lib to src directory Diffstat:
| A | .gitignore | | | 3 | +++ |
| M | Makefile | | | 8 | +++++--- |
| R | lib/em_inflate.c -> src/em_inflate.c | | | 0 | |
| R | lib/em_inflate.h -> src/em_inflate.h | | | 0 |
4 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -0,0 +1,3 @@ +/lib/ +*.o +/em_inflate diff --git a/Makefile b/Makefile @@ -1,20 +1,22 @@ CC=cc -CFLAGS=-O3 -fomit-frame-pointer -Ilib -Iexample +CFLAGS=-O3 -fomit-frame-pointer -Isrc -Iexample OBJDIR=obj LDFLAGS= +include lib/.dep/config.mk + $(OBJDIR)/%.o: example/../%.c @mkdir -p '$(@D)' $(CC) $(CFLAGS) -c $< -o $@ -$(OBJDIR)/%.o: lib/../%.c +$(OBJDIR)/%.o: src/../%.c @mkdir -p '$(@D)' $(CC) $(CFLAGS) -c $< -o $@ APP := em_inflate OBJS := $(OBJDIR)/example/main.o -OBJS += $(OBJDIR)/lib/em_inflate.o +OBJS += $(OBJDIR)/src/em_inflate.o all: $(APP) diff --git a/lib/em_inflate.c b/src/em_inflate.c diff --git a/lib/em_inflate.h b/src/em_inflate.h