-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimised code, added new features, removed junk.
- Loading branch information
Showing
13 changed files
with
632 additions
and
577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ([email protected]) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.