openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

Makefile.lib (839B)


      1 # source files.
      2 SRC =  	src/bcm_debug.c  src/bcm_utils.c  src/bcm_xmod.c  src/bcm_xmod_arg_len.c  src/bcm_xmod_pe_api.c src/dscdump.c src/eyescan.c src/prbs.c src/tsc_functions.c
      3  
      4 OBJ = $(SRC:.c=.o)
      5  
      6 OUT = ./pe-sdk.a
      7  
      8 # include directories
      9 INCLUDES = -I. -I./include/ 
     10  
     11 # C compiler flags (-g -O2 -Wall)
     12 CFLAGS = -g 
     13 
     14 # compiler
     15 CC = gcc
     16  
     17 # library paths
     18 LIBS = -L../ -L/usr/local/lib 
     19  
     20 # compile flags
     21 LDFLAGS = -g
     22  
     23 #APP = ./pe-sdk.exe
     24 #SRC_APP = main.c
     25 #OBJ_APP = $(SRC_APP:.c=.o)
     26 #CFLAGS += -DINCLUDE_MAIN
     27 
     28 
     29 .SUFFIXES: .c
     30  
     31 all default: dep $(OUT) $(APP)
     32  
     33 .c.o:
     34 	$(CC) $(INCLUDES) $(CFLAGS) -c $< -o $@
     35 
     36 $(APP): $(OBJ) $(OBJ_APP)
     37 	$(CC) -o $(APP) $(OBJ) $(OBJ_APP)  
     38 
     39 $(OUT): $(OBJ)
     40 	ar rcs $(OUT) $(OBJ)
     41  
     42 depend: dep
     43  
     44 dep:
     45 	#makedepend -- $(CFLAGS) -- $(INCLUDES) $(SRC)
     46  
     47 clean:
     48 	rm -f $(OBJ) $(OUT) $(OBJ_APP) Makefile.bak