Subversion Repositories libSerial

Rev

Rev 2 | Rev 10 | Go to most recent revision | 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
14
 
15
# build these sources 
16
$(SERIAL_OBJ)/%.o: $(SERIAL_SRC)/%.c $(DEPENDS)
17
	$(CC) $(CFLAGS)   $< -o $@
18
 
19
# C_INCLUDES and C_OBJECTS used by simple makefiles, 
20
# other macros are for more complex makefiles 
3 mjames 21
 
2 mjames 22
C_INCLUDES += -I$(SERIAL_INC)
3 mjames 23
 
24
 
2 mjames 25
C_OBJECTS += $(SERIAL_OBJECTS)
26
 
27
C_SOURCES += $(LIBSERIAL)/src/serial.c
28