X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=assman;a=blobdiff_plain;f=Makefile;fp=Makefile;h=0000000000000000000000000000000000000000;hp=b6e21dbc70b2d367537d4f7d022746083c7c7b38;hb=0a40e599114ea4b136601e5ba467eb0f8b48a839;hpb=53025831f330bce574a82d7be44ef2c4fcb46b77 diff --git a/Makefile b/Makefile deleted file mode 100644 index b6e21db..0000000 --- a/Makefile +++ /dev/null @@ -1,49 +0,0 @@ -src = $(wildcard src/*.c) -obj = $(src:.c=.o) -dep = $(obj:.o=.d) - -name = assman -so_major = 0 -so_minor = 1 - -lib_a = lib$(name).a -lib_so = lib$(name).so.$(so_major).$(so_minor) -soname = lib$(name).so.$(so_major) -devlink = lib$(name).so -shared = -shared -Wl,-soname,$(soname) - -warn = -pedantic -Wall -dbg = -g -opt = -O0 -def = -DBUILD_MOD_URL -pic = -fPIC - -CFLAGS = $(warn) $(dbg) $(opt) $(pic) $(def) $(inc) -LDFLAGS = -lpthread -lcurl - -.PHONY: all -all: $(lib_so) $(lib_a) $(soname) $(devlink) - -$(lib_so): $(obj) - $(CC) -o $@ $(shared) $(obj) $(LDFLAGS) - -$(lib_a): $(obj) - $(AR) rcs $@ $(obj) - -$(soname): $(lib_so) - rm -f $@ && ln -s $< $@ - -$(devlink): $(soname) - rm -f $@ && ln -s $< $@ - -%.d: %.c - @echo "generating depfile $< -> $@" - @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ - -.PHONY: clean -clean: - rm -f $(obj) $(lib_a) $(lib_so) $(soname) $(devlink) - -.PHONY: cleandep -cleandep: - rm -f $(dep)