Skip to content

Commit

Permalink
New version (1.8.22) of SLOG
Browse files Browse the repository at this point in the history
Optimised code, added new features, removed junk.
  • Loading branch information
kala13x authored Dec 13, 2020
2 parents 667bf2f + 12172ec commit 2fc9234
Show file tree
Hide file tree
Showing 13 changed files with 632 additions and 577 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Sun Dro
Copyright (c) 2015-2020 Sun Dro (f4tb0y@protonmail.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
39 changes: 39 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
####################################
# Automatically generated by SMake #
# https://github.com/kala13x/smake #
####################################

CFLAGS = -g -O2 -Wall -Isrc
LIBS = -lpthread
NAME = libslog.a
ODIR = lib
OBJ = o

ifeq ($(UNAME_S),Darwin)
CFLAGS += -DDARWIN
endif

OBJS = slog.$(OBJ)
OBJECTS = $(patsubst %,$(ODIR)/%,$(OBJS))
HEADERS = /usr/local/include
INSTALL = /usr/local/lib
VPATH = src

.c.$(OBJ):
@test -d $(ODIR) || mkdir $(ODIR)
$(CC) $(CFLAGS) -c -o $(ODIR)/$@ $< $(LIBS)

$(NAME):$(OBJS)
$(AR) rcs -o $(ODIR)/$(NAME) $(OBJECTS)
@test -d $(BUILD) || mkdir $(BUILD)

.PHONY: install
install:
@test -d $(INSTALL) || mkdir $(INSTALL)
@install -m 0755 $(ODIR)/$(NAME) $(INSTALL)/
@test -d $(HEADERS) || mkdir $(HEADERS)
@install -m 0755 $(VPATH)/*.h $(HEADERS)/

.PHONY: clean
clean:
$(RM) $(ODIR)/$(NAME) $(OBJECTS)
Loading

0 comments on commit 2fc9234

Please sign in to comment.