From 75906fbb296d2ed7cd9ca05e1b7bf0c92f84a30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Thu, 24 Mar 2022 01:09:48 +0300 Subject: Switch from unja to roscha Still a WIP, some bugs need to be fixed. Also change the license to GPL from LGPL. It was always meant to be GPL, not sure what brain fart caused this. --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d5b07eb..41be2b8 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,16 @@ CC?=gcc XFLAGS=-D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L -CFLAGS?=-std=c99 -O2 -Wall $(XFLAGS) +CFLAGS?=-std=c11 -O2 -Wall $(XFLAGS) LIBS:=-lexif LIBS+=$(shell pkg-config --cflags --libs GraphicsMagickWand) -IDIRS:=$(addprefix -iquote,include unja/src unja parcini/include) +IDIRS:=$(addprefix -iquote,include roscha roscha/include parcini/include) BUILDIR?=build/release ifdef DEBUG BUILDIR:=build/debug -CFLAGS:=-std=c99 -O0 -g -DDEBUG $(XFLAGS) +CFLAGS:=-std=c11 -O0 -DDEBUG $(XFLAGS) -g endif ifdef ASAN CFLAGS+= -fsanitize=address -fno-omit-frame-pointer @@ -18,13 +18,13 @@ endif OBJDIR=$(BUILDIR)/obj -UNJA_SRCS+=$(shell find unja -name '*.c' -not -path '*/tests/*') -UNJA_OBJS:=$(UNJA_SRCS:%.c=$(OBJDIR)/%.o) +ROSCHA_SRCS+=$(shell find roscha -name '*.c' -not -path '*/tests/*') +ROSCHA_OBJS:=$(ROSCHA_SRCS:%.c=$(OBJDIR)/%.o) PARCINI_SRCS:=$(wildcard parcini/src/*.c) PARCINI_OBJS:=$(PARCINI_SRCS:%.c=$(OBJDIR)/%.o) REVELA_SRCS:=$(shell find src -name '*.c' -not -path '*/tests/*') REVELA_OBJS:=$(REVELA_SRCS:%.c=$(OBJDIR)/%.o) -ALL_OBJS:=$(UNJA_OBJS) $(PARCINI_OBJS) $(REVELA_OBJS) +ALL_OBJS:=$(ROSCHA_OBJS) $(PARCINI_OBJS) $(REVELA_OBJS) TEST_OBJS:=$(filter-out $(OBJDIR)/src/revela.o,$(ALL_OBJS)) all: revela @@ -33,15 +33,15 @@ test: tests/config tests/fs tests/%: $(OBJDIR)/src/tests/%.o $(TEST_OBJS) mkdir -p $(BUILDIR)/$(@D) - $(CC) -o $(BUILDIR)/$@ $^ $(LDFLAGS) $(IDIRS) $(LIBS) + $(CC) -o $(BUILDIR)/$@ $^ $(IDIRS) $(LIBS) $(CFLAGS) $(OBJDIR)/%.o: %.c mkdir -p $(@D) - $(CC) -c $(CFLAGS) $(IDIRS) -o $@ $< $(LIBS) + $(CC) -c $(IDIRS) -o $@ $< $(LIBS) $(CFLAGS) revela: $(ALL_OBJS) mkdir -p $(@D) - $(CC) $(LDFLAGS) -o $(BUILDIR)/$@ $^ $(LIBS) $(CFLAGS) + $(CC) -o $(BUILDIR)/$@ $^ $(LIBS) $(CFLAGS) clean: rm -r build -- cgit v1.2.3