diff options
| author | tomas <tomas> | 2005-06-10 13:01:15 +0000 |
|---|---|---|
| committer | tomas <tomas> | 2005-06-10 13:01:15 +0000 |
| commit | 26d207052c41bc95366dad263dde77c7a5cb17e1 (patch) | |
| tree | 39172fd4bf4aa7a97040eeb0f4213a2b08941230 | |
| parent | 82926a72edd9de0204dcf48d280fb3433dbe05f1 (diff) | |
| download | luafilesystem-26d207052c41bc95366dad263dde77c7a5cb17e1.tar.gz luafilesystem-26d207052c41bc95366dad263dde77c7a5cb17e1.tar.bz2 luafilesystem-26d207052c41bc95366dad263dde77c7a5cb17e1.zip | |
Cleaning unused libraries while building .so.
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | config | 6 |
2 files changed, 4 insertions, 8 deletions
| @@ -1,7 +1,7 @@ | |||
| 1 | # $Id: Makefile,v 1.23 2005/06/06 22:15:53 tomas Exp $ | 1 | # $Id: Makefile,v 1.24 2005/06/10 13:01:15 tomas Exp $ |
| 2 | 2 | ||
| 3 | T= lfs | 3 | T= lfs |
| 4 | V= 1.1 | 4 | V= 1.2 |
| 5 | CONFIG= ./config | 5 | CONFIG= ./config |
| 6 | 6 | ||
| 7 | include $(CONFIG) | 7 | include $(CONFIG) |
| @@ -14,7 +14,7 @@ OBJS= src/$T.o $(COMPAT_O) | |||
| 14 | lib: src/$(LIBNAME) | 14 | lib: src/$(LIBNAME) |
| 15 | 15 | ||
| 16 | src/$(LIBNAME): $(OBJS) | 16 | src/$(LIBNAME): $(OBJS) |
| 17 | export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIBS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS) | 17 | export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS) |
| 18 | 18 | ||
| 19 | $(COMPAT_O): $(COMPAT_DIR)/compat-5.1.c | 19 | $(COMPAT_O): $(COMPAT_DIR)/compat-5.1.c |
| 20 | $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c | 20 | $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c |
| @@ -12,13 +12,9 @@ LIBNAME= lib$T-$V.so | |||
| 12 | COMPAT_DIR= ../compat/src | 12 | COMPAT_DIR= ../compat/src |
| 13 | 13 | ||
| 14 | # Compilation directives | 14 | # Compilation directives |
| 15 | # On FreeBSD systems, the following line should be commented | ||
| 16 | #DLLIB= -ldl | ||
| 17 | #LUA_LIBS= -llua50 -lm | ||
| 18 | WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings | 15 | WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings |
| 19 | INCS= -I$(LUA_INC) -I$(COMPAT_DIR) | 16 | INCS= -I$(LUA_INC) -I$(COMPAT_DIR) |
| 20 | LIBS= $(LUA_LIBS) $(DLLIB) | ||
| 21 | CFLAGS= $(WARN) $(INCS) | 17 | CFLAGS= $(WARN) $(INCS) |
| 22 | CC= gcc | 18 | CC= gcc |
| 23 | 19 | ||
| 24 | # $Id: config,v 1.12 2005/06/06 20:10:10 tomas Exp $ | 20 | # $Id: config,v 1.13 2005/06/10 13:01:15 tomas Exp $ |
