rockbox/utils/regtools/Makefile
Amaury Pouly 6f0f1193e5 regtools: add new tool list/find/describe registers
Change-Id: I2d93d24bd421e1a2ea6d27b8f7cfd17311e6d458
2017-02-04 17:18:13 +01:00

26 lines
461 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)