Skip to content
Snippets Groups Projects
Makefile 666 B
Newer Older
CFLAGS = -ggdb -Wall -fPIC -I../kernel $(EXTRACFLAGS)
LDFLAGS = -L. -lspec 
LIBSHARED = libspec.so

PROGS = spec-cl spec-fwloader spec-vuart specmem
PROGS += wr-dio-cmd wr-dio-pps wr-dio-agent wr-dio-ruler
PROGS += stamp-frame
all: $(LIB) $(PROGS) $(LIBSHARED)

$(PROGS): $(LIB)

$(LIB): $(LIBOBJ)
	ar r $@ $^

		${CC} $(CFLAGS) -c $^ -I .
$(LIBSHARED): $(LIB)
	${CC} -shared -o $@ -Wl,--whole-archive $^ -Wl,--no-whole-archive


	rm -f *.o $(LIB) $(PROGS) $(LIBSHARED) *~

# add the other unused targets, so the rule in ../Makefile works
modules install modules_install: