# libsst-concurrency/Source/Makefile # Author: Patrick Baggett # Created: 12/23/2011 # # Purpose: # # Makefile for libsst-concurrency # # License: # # This program is free software. It comes without any warranty, to # the extent permitted by applicable law. You can redistribute it # and/or modify it under the terms of the Do What The Fuck You Want # To Public License, Version 2, as published by Sam Hocevar. See # http://sam.zoy.org/wtfpl/COPYING for more details. BINNAME := $(DIST)/libsst-concurrency.a ifeq ($(TARGET),debug) BINNAME := $(subst .a,_d.a, $(BINNAME)) endif include sources-$(SUBSYSTEM).mk include sources-common.mk OBJ := $(addprefix obj/$(ARCH)/$(TARGET)/,$(subst .c,.o,$(SRC)) ) $(shell mkdir -p obj/$(ARCH)/$(TARGET)) $(BINNAME): $(OBJ) $(AR) cru $@ $+ $(RANLIB) $@ # CLEAN clean: @-rm -r -f obj $(DIST)/libsst-concurrency*.a # *.c files to *.o files obj/$(ARCH)/$(TARGET)/%.o: %.c @echo CC $@ @$(CC) $(CFLAGS) -c $*.c -o obj/$(ARCH)/$(TARGET)/$*.o