Permalink
Browse files

* Fixed standalone compilation.

  • Loading branch information...
bobbens committed Feb 23, 2013
1 parent 876d775 commit 0e7a309a365a0c04b42179952ecd6f08de893284
Showing with 3 additions and 2 deletions.
  1. +3 −2 luarocks/Makefile
View
@@ -5,17 +5,18 @@ OBJS := luadq.o
CFLAGS := -O3 -fPIC -W -Wall -Wextra -pedantic -ansi -Wconversion -Wunused -Wshadow -Wpointer-arith -Wmissing-prototypes -Winline -Wcast-align -Wmissing-declarations -Wredundant-decls -Wno-long-long -Wcast-align
#CFLAGS := -g -DDQ_CHECK -fPIC -W -Wall -Wextra -Werror -pedantic -ansi
CFLAGS += $(shell pkg-config lua5.1 --cflags)
CFLAGS += $(shell pkg-config lua --cflags)
LDFLAGS := -ldq
.PHONY: all clean
all: $(LIBNAME)
$(LIBNAME): $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -shared $(OBJS) -o $(LIBNAME)
$(CC) -shared -o $(LIBNAME) -shared $(OBJS) $(LDFLAGS)
clean:
$(RM) $(OBJS) $(LIBNAME)

0 comments on commit 0e7a309

Please sign in to comment.