forked from len0rd/rockbox
Floating instances don't have an address and will only generate child nodes and registers with offsets. The 'nochild' flag will disable generating the children for a node but will generate the node's own address, which can be used to generate base addresses. Change-Id: Ib1014de94531436d5708db46aa684741e7740ace
27 lines
480 B
Makefile
27 lines
480 B
Makefile
DEFINES=
|
|
CC?=gcc
|
|
CXX?=g++
|
|
LD?=g++
|
|
INCLUDE=-Iinclude/
|
|
CFLAGS=-g -std=c99 -Wall $(DEFINES) $(INCLUDE)
|
|
CXXFLAGS=-g -std=c++11 -Wall $(DEFINES) $(INCLUDE)
|
|
LDFLAGS=-Llib -lsocdesc `xml2-config --libs`
|
|
SRC=$(wildcard *.c)
|
|
SRCXX=$(wildcard *.cpp)
|
|
EXEC=$(SRC:.c=) $(SRCXX:.cpp=)
|
|
LIB=lib/libsocdesc.a
|
|
|
|
all: $(EXEC)
|
|
|
|
$(LIB):
|
|
make -C lib
|
|
|
|
%: %.c $(LIB)
|
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
%: %.cpp $(LIB)
|
|
$(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -fr $(EXEC)
|
|
make -C lib clean
|