rockbox/utils/regtools/Makefile
Amaury Pouly 1cada1f833 soc_desc: new version of the desc file format
Fix qeditor to use the old soc_desc_v1.
Port hwstub_shell to the new description format.

Change-Id: I9fefbff534bfaa5c3603bb3dd8307a2b76e88cfc
2015-09-11 16:40:19 +02:00

26 lines
450 B
Makefile

DEFINES=
CC?=gcc
CXX?=g++
LD?=g++
INCLUDE=-Iinclude/
CFLAGS=-g -std=c99 -Wall $(DEFINES) $(INCLUDE)
CXXFLAGS=-g -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)