diff --git a/libowlps-client/Makefile_atheros_openwrt-8.09 b/libowlps-client/Makefile_atheros_openwrt-8.09 deleted file mode 100644 index 9b4c83b..0000000 --- a/libowlps-client/Makefile_atheros_openwrt-8.09 +++ /dev/null @@ -1,75 +0,0 @@ -# Cross-compilation toolchain directories -TOOLCHAIN_PREFIX = $$HOME/openwrt/atheros/8.09 -TOOLCHAIN_BIN = $(TOOLCHAIN_PREFIX)/staging_dir/toolchain-mips_gcc4.1.2/bin -TOOLCHAIN_USR = $(TOOLCHAIN_PREFIX)/staging_dir/mips/usr -TOOLCHAIN_USR_2 = $(TOOLCHAIN_PREFIX)/build_dir/mips/OpenWrt-SDK-atheros-for-Linux-i686/staging_dir/toolchain-mips_gcc4.1.2 - -# Compiler -CC = $(TOOLCHAIN_BIN)/mips-linux-gcc - -# Other tools -AR = ar -RANLIB = ranlib -RM = rm -f - -# General variables -LIB_CIBLE=libowlps-client -VERSION=1.0 - -# Targets to build -STATIC=$(LIB_CIBLE).a -HEADER=owlps-client.h - -# Library components -OBJS=$(LIB_CIBLE).o - -# Flags -LIBOWLPS_DIR = ../libowlps -CFLAGS = -O2 -Wall -Wextra -Wstrict-prototypes -O -I$(LIBOWLPS_DIR) -#CFLAGS += -g -O0 -CFLAGS += -D DEBUG -DEPFLAGS=-MMD -XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) -PICFLAG=-fPIC -LIBS=-liw -#STRIPFLAGS= -Wl,-s -#LDFLAGS= -LATHEROS = -L$(TOOLCHAIN_USR)/lib -L$(TOOLCHAIN_USR_2)/lib -IATHEROS = -I$(TOOLCHAIN_USR)/include -I$(TOOLCHAIN_USR_2)/include - - -## Standard targets ## - -.PHONY : all static clean purge help - -all : static -static : $(STATIC) - -%.o : %.c $(HEADER) - $(CC) $(XCFLAGS) $(IATHEROS) -c $< - -# Static library compilation -$(STATIC) : $(OBJS) - $(RM) $@ - $(AR) cru $@ $^ - $(RANLIB) $@ - - -## Cleaning ## - -clean : - @$(RM) *~ *.o *.d - -purge : clean - @$(RM) $(STATIC) - - -## Help ## - -help : - @make help - - -# Local Variables: * -# mode: makefile-gmake * -# End: * diff --git a/libowlps/Makefile_atheros_openwrt-8.09 b/libowlps/Makefile_atheros_openwrt-8.09 deleted file mode 100644 index 571f44e..0000000 --- a/libowlps/Makefile_atheros_openwrt-8.09 +++ /dev/null @@ -1,131 +0,0 @@ -# Cross-compilation toolchain directories -TOOLCHAIN_PREFIX = $$HOME/openwrt/atheros/8.09 -TOOLCHAIN_BIN = $(TOOLCHAIN_PREFIX)/staging_dir/toolchain-mips_gcc4.1.2/bin -TOOLCHAIN_USR = $(TOOLCHAIN_PREFIX)/staging_dir/mips/usr -TOOLCHAIN_USR_2 = $(TOOLCHAIN_PREFIX)/build_dir/mips/OpenWrt-SDK-atheros-for-Linux-i686/staging_dir/toolchain-mips_gcc4.1.2 - -# Installation directory -PREFIX=/usr/local -INSTALL_LIB= $(PREFIX)/lib -INSTALL_INC= $(PREFIX)/include -INSTALL_MAN= $(PREFIX)/share/man - -# Compiler -CC = $(TOOLCHAIN_BIN)/mips-linux-gcc - -# Other tools -AR = ar -RANLIB = ranlib - -# Install/uninstall commands -RM = rm -f -CP = cp -SYMLINK = ln -sf - -# General variables -LIB_CIBLE=libowlps -VERSION = 2.0 - -# Targets to build -STATIC=$(LIB_CIBLE).a -DYNAMIC=$(LIB_CIBLE).so.$(VERSION) -#PROGS= -HEADER=owlps.h -#HEADERS= - -# Library components -OBJS=$(LIB_CIBLE).o - -# Flags -CFLAGS = -O2 -Wall -Wextra -Wstrict-prototypes -O -#CFLAGS += -g -O0 -#CFLAGS += -D NDEBUG -DEPFLAGS=-MMD -XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) -PICFLAG=-fPIC -LIBS = -lrt -#STRIPFLAGS= -Wl,-s -#LDFLAGS= -LATHEROS = -L$(TOOLCHAIN_USR)/lib -L$(TOOLCHAIN_USR_2)/lib -IATHEROS = -I$(TOOLCHAIN_USR)/include -I$(TOOLCHAIN_USR_2)/include - - -## Standard targets ## - -.PHONY : all dynamic static install install-dynamic install-static install-header uninstall uninstall-dynamic uninstall-static uninstall-header clean purge help - -all : dynamic static -dynamic : $(DYNAMIC) -static : $(STATIC) - -%.o: %.c $(HEADER) - $(CC) $(XCFLAGS) $(IATHEROS) $(PICFLAG) -c -o $@ $< - -# Dynamic library compilation -$(DYNAMIC): $(OBJS) - $(CC) -shared -o $@ -Wl,-soname,$@ $(STRIPFLAGS) $(LIBS) $(IATHEROS) $(LATHEROS) -lc $^ - $(SYMLINK) $@ $(LIB_CIBLE).so - chmod a-x $@ - -# Static library compilation -$(STATIC): $(OBJS) - $(RM) $@ - $(AR) cru $@ $^ - $(RANLIB) $@ - - -## Installation ## - -install : install-static install-dynamic - -install-dynamic : install-header $(DYNAMIC) - @$(CP) $(DYNAMIC) $(INSTALL_LIB) &&\ - chmod 644 $(INSTALL_LIB)/$(DYNAMIC) &&\ - chown root:root $(INSTALL_LIB)/$(DYNAMIC) &&\ - cd $(INSTALL_LIB) && $(SYMLINK) $(DYNAMIC) $(LIB_CIBLE).so &&\ - echo "Reconstruction du cache pour ld.so : ldconfig $(INSTALL_LIB)" ; ldconfig $(INSTALL_LIB) - -install-static : install-header $(STATIC) - @$(CP) $(STATIC) $(INSTALL_LIB) &&\ - chmod 644 $(INSTALL_LIB)/$(STATIC) &&\ - chown root:root $(INSTALL_LIB)/$(STATIC) - -install-header : $(HEADER) - @$(CP) $(HEADER) $(INSTALL_INC) &&\ - chmod 644 $(INSTALL_INC)/$(HEADER) &&\ - chown root:root $(INSTALL_INC)/$(HEADER) - - -## Uninstallation ## - -uninstall : uninstall-dynamic uninstall-static - -uninstall-dynamic : uninstall-header - @$(RM) $(INSTALL_LIB)/$(DYNAMIC) $(INSTALL_LIB)/$(LIB_CIBLE).so - @echo "Reconstruction du cache pour ld.so : ldconfig" ; ldconfig - -uninstall-static : uninstall-header - @$(RM) $(INSTALL_LIB)/$(STATIC) - -uninstall-header : - @$(RM) $(INSTALL_INC)/$(HEADER) - - -## Cleaning ## - -clean : - @$(RM) *~ *.o *.d - -purge : clean - @$(RM) $(DYNAMIC) *.so $(STATIC) $(PROGS) - - -## Help ## - -help : - @make help - - -# Local Variables: * -# mode: makefile-gmake * -# End: * diff --git a/owlps-client/Makefile_atheros_openwrt-8.09 b/owlps-client/Makefile_atheros_openwrt-8.09 deleted file mode 100644 index 1a5b074..0000000 --- a/owlps-client/Makefile_atheros_openwrt-8.09 +++ /dev/null @@ -1,106 +0,0 @@ -# Source version -ifndef OWLPS_VERSION - OWLPS_VERSION := $(shell git describe 2>/dev/null || echo 'UNKNOWN_VERSION') -endif - -# Cross-compilation toolchain directories -TOOLCHAIN_PREFIX = $$HOME/openwrt/atheros/8.09 -TOOLCHAIN_BIN = $(TOOLCHAIN_PREFIX)/staging_dir/toolchain-mips_gcc4.1.2/bin -TOOLCHAIN_USR = $(TOOLCHAIN_PREFIX)/staging_dir/mips/usr -TOOLCHAIN_USR_2 = $(TOOLCHAIN_PREFIX)/build_dir/mips/OpenWrt-SDK-atheros-for-Linux-i686/staging_dir/toolchain-mips_gcc4.1.2 - -# Installation directory -PREFIX=/usr/local -INSTALL_DIR= $(PREFIX)/bin -INSTALL_LIB= $(PREFIX)/lib -INSTALL_INC= $(PREFIX)/include -INSTALL_MAN= $(PREFIX)/share/man - -# Compiler -CC = $(TOOLCHAIN_BIN)/mips-linux-gcc - -# Install/uninstall commands -RM = rm -f -CP = cp - -# Target -TARGET=owlps-client -HEADER= - -# Flags -LIBOWLPS_DIR = ../libowlps -LIBOWLPSCLIENT_DIR = ../libowlps-client -CFLAGS = -O2 -Wall -Wextra -Wstrict-prototypes \ - -I$(LIBOWLPS_DIR) -I$(LIBOWLPSCLIENT_DIR) -#CFLAGS += -g -O0 -DEPFLAGS = -MMD -XCFLAGS = $(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) -PICFLAG = -fPIC -LOWLPS = -L$(LIBOWLPS_DIR) -lowlps -LOWLPSA = $(LIBOWLPS_DIR)/libowlps.a -LOWLPSCLIENTA = $(LIBOWLPSCLIENT_DIR)/libowlps-client.a -LIBS = $(LOWLPSCLIENTA) -DYNAMIC_LIBS = $(LOWLPS) $(LIBS) -SEMISTATIC_LIBS = $(LOWLPSA) $(LIBS) -STATIC_LIBS = $(LOWLPSA) $(LIBS) -LATHEROS = -L$(TOOLCHAIN_USR)/lib -L$(TOOLCHAIN_USR_2)/lib -IATHEROS = -I$(TOOLCHAIN_USR)/include -I$(TOOLCHAIN_USR_2)/include -LDFLAGS = $(IATHEROS) $(LATHEROS) -OWLPSFLAGS = -D OWLPS_VERSION=\"$(OWLPS_VERSION)\" -OWLPSFLAGS += -D DEBUG - - -## Standard targets ## - -.PHONY: all dynamic semistatic static install uninstall clean purge help - -dynamic: $(TARGET) -semistatic: $(TARGET).semistatic -static: $(TARGET).static -all: dynamic semistatic static - -# Cancel implicit make rule -%: %.c - -%: %.o - $(CC) $(STRIPFLAGS) $(XCFLAGS) -o $@ $^ $(LDFLAGS) $(DYNAMIC_LIBS) - -%.semistatic: %.o - $(CC) $(STRIPFLAGS) $(XCFLAGS) -o $@ $^ $(LDFLAGS) $(SEMISTATIC_LIBS) - -%.static: %.o - $(CC) $(STRIPFLAGS) $(XCFLAGS) -o $@ $^ $(LDFLAGS) $(STATIC_LIBS) \ - -static - -%.o: %.c $(HEADER) - $(CC) $(XCFLAGS) $(IATHEROS) $(OWLPSFLAGS) -c $< - - -## Installation / uninstallation ## - -install : $(TARGET) - @$(CP) $(TARGET) $(INSTALL_DIR) - @cd $(INSTALL_DIR) ; chown root:root $(TARGET) ; chmod 755 $(TARGET) - -uninstall : - @$(RM) $(INSTALL_DIR)/$(TARGET) - - -## Cleaning ## - -clean : - @$(RM) *~ *.o *.d - -purge : clean - @$(RM) $(TARGET) $(TARGET).static $(TARGET).semistatic - - -## Help ## - -help : - @make help - - -# Local Variables: * -# mode: makefile-gmake * -# End: * diff --git a/owlps-listener/Makefile_atheros_openwrt-8.09 b/owlps-listener/Makefile_atheros_openwrt-8.09 deleted file mode 100644 index b3067cf..0000000 --- a/owlps-listener/Makefile_atheros_openwrt-8.09 +++ /dev/null @@ -1,106 +0,0 @@ -# Source version -ifndef OWLPS_VERSION - OWLPS_VERSION := $(shell git describe 2>/dev/null || echo 'UNKNOWN_VERSION') -endif - -# Cross-compilation toolchain directories -TOOLCHAIN_PREFIX = $$HOME/openwrt/atheros/8.09 -TOOLCHAIN_BIN = $(TOOLCHAIN_PREFIX)/staging_dir/toolchain-mips_gcc4.1.2/bin -TOOLCHAIN_USR = $(TOOLCHAIN_PREFIX)/staging_dir/mips/usr -TOOLCHAIN_USR_2 = $(TOOLCHAIN_PREFIX)/build_dir/mips/OpenWrt-SDK-atheros-for-Linux-i686/staging_dir/toolchain-mips_gcc4.1.2 - -# Installation directory -PREFIX=/usr/local -INSTALL_DIR= $(PREFIX)/sbin -INSTALL_LIB= $(PREFIX)/lib -INSTALL_INC= $(PREFIX)/include -INSTALL_MAN= $(PREFIX)/share/man - -# Compiler -CC = $(TOOLCHAIN_BIN)/mips-linux-gcc - -# Install/uninstall commands -RM = rm -f -CP = cp - -# Target -TARGET=owlps-listenerd -HEADER=owlps-listener.h - -# Flags -LIBOWLPS_DIR = ../libowlps -LIBOWLPSCLIENT_DIR = ../libowlps-client -CFLAGS = -O2 -Wall -Wextra -Wstrict-prototypes \ - -I$(LIBOWLPS_DIR) -I$(LIBOWLPSCLIENT_DIR) -#CFLAGS += -g -O0 -DEPFLAGS = -MMD -XCFLAGS = $(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) -PICFLAG = -fPIC -LOWLPS = -L$(LIBOWLPS_DIR) -lowlps -LOWLPSA = $(LIBOWLPS_DIR)/libowlps.a -LOWLPSCLIENTA = $(LIBOWLPSCLIENT_DIR)/libowlps-client.a -LIBS = -lpcap -lrt $(LOWLPSCLIENTA) -STATIC_LIBS = -lm -LATHEROS = -L$(TOOLCHAIN_USR)/lib -L$(TOOLCHAIN_USR_2)/lib -IATHEROS = -I$(TOOLCHAIN_USR)/include -I$(TOOLCHAIN_USR_2)/include -OWLPSFLAGS = -D OWLPS_VERSION=\"$(OWLPS_VERSION)\" -#OWLPSFLAGS += -D USE_CONFIG_FILE -lconfuse -OWLPSFLAGS += -D USE_PTHREAD -pthread -#OWLPSFLAGS += -D ENABLE_KEEP_MONITOR -liw -#OWLPSFLAGS += -D NDEBUG -LDFLAGS = $(OWLPSFLAGS) $(LIBS) - - -## Standard targets ## - -.PHONY: all dynamic semistatic static install uninstall clean purge help - -dynamic: $(TARGET) -semistatic: $(TARGET).semistatic -static: $(TARGET).static -all: dynamic semistatic static - -# Cancel implicit make rule -%: %.c - -%: %.o - $(CC) $(STRIPFLAGS) $(XCFLAGS) -o $@ $^ $(LOWLPS) $(IATHEROS) $(LATHEROS) $(LDFLAGS) - -%.semistatic: %.o - $(CC) $(STRIPFLAGS) $(XCFLAGS) -o $@ $^ $(LOWLPSA) $(IATHEROS) $(LATHEROS) $(LDFLAGS) - -%.static: %.o - $(CC) $(STRIPFLAGS) $(XCFLAGS) -o $@ $^ $(LOWLPS) $(IATHEROS) $(LATHEROS) $(LDFLAGS) $(STATIC_LIBS) -static - -%.o: %.c $(HEADER) - $(CC) $(XCFLAGS) $(IATHEROS) $(OWLPSFLAGS) -c $< - - -## Installation / uninstallation ## - -install : $(TARGET) - @$(CP) $(TARGET) $(INSTALL_DIR) - @cd $(INSTALL_DIR) ; chown root:root $(TARGET) ; chmod 755 $(TARGET) - -uninstall : - @$(RM) $(INSTALL_DIR)/$(TARGET) - - -## Cleaning ## - -clean : - @$(RM) *~ *.o *.d - -purge : clean - @$(RM) $(TARGET) $(TARGET).static $(TARGET).semistatic - - -## Help ## - -help : - @make help - - -# Local Variables: * -# mode: makefile-gmake * -# End: *