File: Makefile

package info (click to toggle)
lua-discount 2.1.8-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 224 kB
  • sloc: ansic: 2,976; makefile: 38
file content (43 lines) | stat: -rw-r--r-- 772 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
LIB_NAME= lua-discount
VERSION= 2.1.8

# change these to reflect your Lua installation
LUA= /usr
LUAINC= $(LUA)/include/lua5.1
LUALIB= $(LUA)/lib
LUABIN= $(LUA)/bin

# probably no need to change anything below here
CC= gcc
CFLAGS= $(INCS) $(WARN) -O2 -fPIC ${DEFS}
WARN= -Wall
INCS= -I$(LUAINC)
DEFS = 

DISCOUNT_OBJS = basename.o \
  Csio.o \
	css.o \
	docheader.o \
	dumptree.o \
	emmatch.o \
	generate.o \
	markdown.o \
	mkdio.o \
	resource.o \
	toc.o \
	xml.o
OBJS=  $(DISCOUNT_OBJS) ldiscount.o
SOS= discount.so

all: $(SOS)

$(SOS): $(OBJS)
	$(CC) -o $@ -shared $(OBJS) $(LIBS)

.PHONY: clean tar
clean:
	rm -f $(OBJS) $(SOS) core core.* a.out

tar: clean
	git archive --format=tar --prefix=$(LIB_NAME)-$(VERSION)/ $(VERSION) | gzip > $(LIB_NAME)-$(VERSION).tar.gz