Skip to content

Commit

Permalink
minor Makefile improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
wg committed May 15, 2014
1 parent 1408856 commit 205a196
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CFLAGS := -std=c99 -Wall -O2 -D_REENTRANT
LIBS := -lpthread -lm -lcrypto -lssl

TARGET := $(shell uname -s | tr [A-Z] [a-z] 2>/dev/null || echo unknown)
TARGET := $(shell uname -s | tr '[A-Z]' '[a-z]' 2>/dev/null || echo unknown)

ifeq ($(TARGET), sunos)
CFLAGS += -D_PTHREADS -D_POSIX_C_SOURCE=200112L
Expand All @@ -25,8 +25,8 @@ OBJ := $(patsubst %.c,$(ODIR)/%.o,$(SRC)) $(ODIR)/bytecode.o

LDIR = deps/luajit/src
LIBS := -lluajit $(LIBS)
CFLAGS += -I $(LDIR)
LDFLAGS += -L $(LDIR)
CFLAGS += -I$(LDIR)
LDFLAGS += -L$(LDIR)

all: $(BIN)

Expand Down

0 comments on commit 205a196

Please sign in to comment.