Skip to content

Commit

Permalink
Merge pull request #18 from robert-scheck/downstream
Browse files Browse the repository at this point in the history
Ease packaging work by allowing downstream adjustments
  • Loading branch information
harningt authored Jan 3, 2021
2 parents aca2ae1 + eb1a6cc commit b1318a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL) -m 644

# Flags
CFLAGS = -Wall -fpic
LDFLAGS = -shared
CFLAGS ?= -Wall -fpic
LDFLAGS ?= -shared

# Directories
LUA_INC_DIR ?= /usr/include/lua5.1
Expand All @@ -21,8 +21,8 @@ INSTALL_DIR_BIN ?= /usr/lib/lua/5.1
LIB = core.so

all:
$(CC) $(CFLAGS) -c -Iinclude -I$(LUA_INC_DIR) src/*.c
$(CC) $(LDFLAGS) -o $(LIB) *.o -levent
$(CC) $(CFLAGS) $(RPM_OPT_FLAGS) -c -Iinclude -I$(LUA_INC_DIR) src/*.c
$(CC) $(LDFLAGS) $(RPM_LD_FLAGS) -o $(LIB) *.o -levent

dist dist-all: distdir dist-bzip2 dist-gzip dist-zip

Expand All @@ -37,7 +37,7 @@ dist-gzip: distdir
dist-zip: distdir
git archive --format=zip --prefix=$(VERSION)/ HEAD > $(DIST_DIR)/$(VERSION).zip

install: all
install:
mkdir -p $(DESTDIR)$(INSTALL_DIR_LUA)
$(INSTALL_DATA) lua/luaevent.lua $(DESTDIR)$(INSTALL_DIR_LUA)/luaevent.lua
mkdir -p $(DESTDIR)$(INSTALL_DIR_BIN)/luaevent/
Expand Down

0 comments on commit b1318a4

Please sign in to comment.