Subversion Repositories libSerial

Rev

Rev 10 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 mjames 1
# make fragment for SERIAL devices data library
2
# input argument LIBSERIAL
3
# outputs OBJ_DIR to create
4
 
5
# Other macros used by bigger build system 
6
 
7
 
8
 
9
SERIAL_PATH  = $(LIBSERIAL)/src
10
SERIAL_SRC   = $(SERIAL_PATH)
11
SERIAL_INC   = $(LIBSERIAL)/inc
3 mjames 12
SERIAL_OBJ   = $(OBJPATH)/libSerial
2 mjames 13
SERIAL_OBJECTS = $(SERIAL_OBJ)/serial.o
10 mjames 14
SERIAL_OBJECTS = $(SERIAL_OBJ)/serialUtils.o
2 mjames 15
 
16
# build these sources 
17
$(SERIAL_OBJ)/%.o: $(SERIAL_SRC)/%.c $(DEPENDS)
18
	$(CC) $(CFLAGS)   $< -o $@
19
 
20
# C_INCLUDES and C_OBJECTS used by simple makefiles, 
21
# other macros are for more complex makefiles 
3 mjames 22
 
2 mjames 23
C_INCLUDES += -I$(SERIAL_INC)
3 mjames 24
 
25
 
2 mjames 26
C_OBJECTS += $(SERIAL_OBJECTS)
27
 
15 mjames 28
C_SOURCES += $(LIBSERIAL)/src/platform.c
2 mjames 29
 
15 mjames 30
 
31
 
32
LIBS += -lserial
33
LIBDIR += -L $(LIBSERIAL)/lib
34