Subversion Repositories libSerial

Rev

Rev 3 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

# make fragment for SERIAL devices data library
# input argument LIBSERIAL
# outputs OBJ_DIR to create

# Other macros used by bigger build system 



SERIAL_PATH  = $(LIBSERIAL)/src
SERIAL_SRC   = $(SERIAL_PATH)
SERIAL_INC   = $(LIBSERIAL)/inc
SERIAL_OBJ   = $(OBJPATH)/libSerial
SERIAL_OBJECTS = $(SERIAL_OBJ)/serial.o
SERIAL_OBJECTS = $(SERIAL_OBJ)/serialUtils.o

# build these sources 
$(SERIAL_OBJ)/%.o: $(SERIAL_SRC)/%.c $(DEPENDS)
        $(CC) $(CFLAGS)   $< -o $@

# C_INCLUDES and C_OBJECTS used by simple makefiles, 
# other macros are for more complex makefiles 

C_INCLUDES += -I$(SERIAL_INC)


C_OBJECTS += $(SERIAL_OBJECTS)

C_SOURCES += $(LIBSERIAL)/src/serial.c
C_SOURCES += $(LIBSERIAL)/src/serialUtils.c