Root/Software/sie_cg/tmp/SIE_APP/Makefile

1TOOLCHAIN_BASE= /home/juan64bits/ebd/ECB/openwrt-xburst/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.32/usr/bin/mipsel-openwrt-linux
2CC = ${TOOLCHAIN_BASE}-gcc
3CXX = ${TOOLCHAIN_BASE}-g++
4INCPATH = -I.
5CFLAGS = ${INCPATH} -pipe -O2 -mips32 -mtune=mips32 -Wall
6CXXFLAGS = ${INCPATH} -pipe -O2 -mips32 -mtune=mips32 -Wall
7LINK = ${TOOLCHAIN_BASE}-g++
8LFLAGS = -Wl,-O1
9LIBS = -lstdc++
10AR = ${TOOLCHAIN_BASE}-ar cqs
11RANLIB = ${TOOLCHAIN_BASE}-ranlib
12DEL_FILE = rm -f
13SYMLINK = ln -f -s
14DEL_DIR = rmdir
15MOVE = mv -f
16MKDIR = mkdir -p
17TARGET = SIE_APP
18
19
20OBJECTS = main.o \
21        jz_adc_peripheral.o \
22        jz_fpga_init.o \
23        jz47xx_gpio.o \
24        jz47xx_mmap.o \
25        fbutils.o
26        
27#BUILD RULES
28all: $(TARGET)
29
30$(TARGET): $(OBJECTS)
31    $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
32    
33fbutils.o: fbutils.c fbutils.h
34    $(CC) $(CFLAGS) $(INCPATH) -c $< -o $@
35
36jz47xx_gpio.o: jz47xx_gpio.cpp \
37        jz47xx_mmap.h
38    $(CXX) $(CXXFLAGS) $(INCPATH) -c $< -o $@
39
40jz47xx_mmap.o: jz47xx_mmap.cpp \
41        jz47xx_gpio.h
42    $(CXX) $(CXXFLAGS) $(INCPATH) -c $< -o $@
43
44jz_adc_peripheral.o: jz_adc_peripheral.cpp \
45        jz_fpga_init.h \
46        jz47xx_gpio.h \
47        jz47xx_mmap.h
48    $(CXX) $(CXXFLAGS) $(INCPATH) -c $< -o $@
49
50jz_fpga_init.o: jz_fpga_init.cpp \
51        jz47xx_gpio.h \
52        jz47xx_mmap.h
53    $(CXX) $(CXXFLAGS) $(INCPATH) -c $< -o $@
54
55main.o: main.cpp \
56        jz_adc_peripheral.h \
57        jz_fpga_init.h
58    $(CXX) $(CXXFLAGS) $(INCPATH) -c $< -o $@
59    
60    
61clean:
62    $(DEL_FILE) *.o $(TARGET)
63    
64

Archive Download this file

Branches:
master



interactive