X-Git-Url: http://git.onelab.eu/?p=libnl.git;a=blobdiff_plain;f=src%2FMakefile;fp=src%2FMakefile;h=795c3ce472be69894f2169b0b07b68b01e8b541a;hp=0000000000000000000000000000000000000000;hb=4cee2ecb3b8afa0637e6f5fe4c57985a4bc740ff;hpb=2df2fbe518d5a221ce6e3ee88a3fb23fb1b94b27 diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..795c3ce --- /dev/null +++ b/src/Makefile @@ -0,0 +1,33 @@ +# +# src/Makefile +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation version 2.1 +# of the License. +# +# Copyright (c) 2003-2006 Thomas Graf +# + +ifeq ($(shell [ ! -r ../Makefile.opts ] && echo 1),) + include ../Makefile.opts +endif + +CFLAGS += -L../lib +CIN := $(wildcard nl-*.c) +TOOLS := $(CIN:%.c=%) + +all: $(TOOLS) + +$(TOOLS): utils.o + +nl-%: nl-%.c + $(CC) $(CFLAGS) -o $@ $< -lnl utils.o + +clean: + rm -f $(TOOLS) utils.o + +distclean: clean + +install: + @true