Root/Software/sie_cg/templates/basic (copy)/Makefile

1CC = ![MIPS TOOLCHAIN]-gcc
2CXX = ![MIPS TOOLCHAIN]-g++
3CFLAGS = -pipe -O2 -Wall
4CXXFLAGS = -pipe -O2 -Wall
5INCPATH = -I.
6LINK = ![MIPS TOOLCHAIN]-g++
7LFLAGS = -Wl,-O1
8LIBS = -L/usr/lib
9AR = ![MIPS TOOLCHAIN]-ar cqs
10RANLIB = ![MIPS TOOLCHAIN]-ranlib
11DEL_FILE = rm -f
12SYMLINK = ln -f -s
13DEL_DIR = rmdir
14MOVE = mv -f
15MKDIR = mkdir -p
16TARGET = ![SIE APP NAME]
17
18
19OBJECTS = ![MAIN OBJECT] \
20        jz_adc_peripheral.o \
21        jz47xx_gpio.o \
22        jz47xx_mmap.o
23
24all: $(TARGET)
25
26$(TARGET): $(OBJECTS)
27    $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
28
29![MAIN OBJECT]: ![MAIN TEMPLATE] \
30        jz_adc_peripheral.h \
31        jz47xx_mmap.h \
32        jz47xx_gpio.h
33    $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
34
35jz_adc_peripheral.o: jz_adc_peripheral.cpp jz_adc_peripheral.h \
36        jz47xx_mmap.h \
37        jz47xx_gpio.h
38    $(CXX) -c $(CXXFLAGS) $(INCPATH) -o jz_adc_peripheral.o jz_adc_peripheral.cpp
39
40jz47xx_gpio.o: jz47xx_gpio.cpp jz47xx_gpio.h \
41        jz47xx_mmap.h
42    $(CXX) -c $(CXXFLAGS) $(INCPATH) -o jz47xx_gpio.o jz47xx_gpio.cpp
43
44jz47xx_mmap.o: jz47xx_mmap.cpp jz47xx_mmap.h \
45        jz47xx_gpio.h
46    $(CXX) -c $(CXXFLAGS) $(INCPATH) -o jz47xx_mmap.o jz47xx_mmap.cpp
47

Archive Download this file

Branches:
master



interactive