1cada1f833
Fix qeditor to use the old soc_desc_v1. Port hwstub_shell to the new description format. Change-Id: I9fefbff534bfaa5c3603bb3dd8307a2b76e88cfc
20 lines
318 B
Makefile
20 lines
318 B
Makefile
CC?=gcc
|
|
CXX?=g++
|
|
AR?=ar
|
|
INCLUDE=../include/
|
|
CXXFLAGS=-Wall -O2 `xml2-config --cflags` -g -fPIC -I$(INCLUDE)
|
|
LIB=libsocdesc.a
|
|
SRC=$(wildcard *.c)
|
|
SRCXX=$(wildcard *.cpp)
|
|
OBJ=$(SRCXX:.cpp=.o)
|
|
|
|
all: $(LIB) $(EXEC)
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
$(LIB): $(OBJ)
|
|
$(AR) rcs $@ $^
|
|
|
|
clean:
|
|
rm -rf $(OBJ) $(LIB)
|