Skip to content

Instantly share code, notes, and snippets.

@btbytes
Created October 21, 2010 22:25
Show Gist options
  • Select an option

  • Save btbytes/639494 to your computer and use it in GitHub Desktop.

Select an option

Save btbytes/639494 to your computer and use it in GitHub Desktop.
Custom Lua-zmq Makefile
CC = gcc
CFLAGS = -I/opt/enth/include -fPIC -O3 -Wall
LFLAGS = -shared -L/opt/enth/lib -lzmq
INSTALL_PATH = /opt/enth/lib/lua/5.1
all: zmq.so
zmq.lo: zmq.c
$(CC) -o zmq.lo -c $(CFLAGS) zmq.c
zmq.so: zmq.lo
$(CC) -o zmq.so $(LFLAGS) zmq.lo
install: zmq.so
install -D -s zmq.so $(INSTALL_PATH)/zmq.so
clean:
rm -f zmq.so zmq.lo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment