File: Makefile

package info (click to toggle)
ion3 20080825-1
  • links: PTS
  • area: non-free
  • in suites: lenny
  • size: 3,824 kB
  • ctags: 4,951
  • sloc: ansic: 44,434; makefile: 501; sh: 421; ruby: 90
file content (42 lines) | stat: -rw-r--r-- 892 bytes parent folder | download
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
##
## Extl Makefile
##

# System-specific configuration is in system.mk
TOPDIR=.
include $(TOPDIR)/build/system-inc.mk

######################################

INCLUDES += $(LIBTU_INCLUDES) $(LUA_INCLUDES)

CFLAGS += $(XOPEN_SOURCE) $(C99_SOURCE)

SOURCES=readconfig.c luaextl.c misc.c

HEADERS=readconfig.h extl.h luaextl.h private.h types.h

TARGETS=libextl.a libextl-mkexports

######################################

include $(TOPDIR)/build/rules.mk

######################################

libextl.a: $(OBJS)
	$(AR) $(ARFLAGS) $@ $+
	$(RANLIB) $@

libextl-mkexports: libextl-mkexports.in
	sed "1s:LUA50:$(LUA):" $< > $@

install:
	$(INSTALLDIR) $(BINDIR)
	$(INSTALL) -m $(BIN_MODE) libextl-mkexports $(BINDIR)
	$(INSTALLDIR) $(LIBDIR)
	$(INSTALL) -m $(DATA_MODE) libextl.a $(LIBDIR)
	$(INSTALLDIR) $(INCDIR)
	for h in $(HEADERS); do \
		$(INSTALL) -m $(DATA_MODE) $$h $(INCDIR); \
	done