Skip to content
Snippets Groups Projects
Makefile 876 B
Newer Older
# If it exists includes Makefile.specific. In this Makefile, you should put
# specific Makefile code that you want to run before this. For example,
# build a particular environment.
-include Makefile.specific
CFLAGS += -ggdb -Wall -fPIC -I../kernel $(EXTRACFLAGS)
LDFLAGS += -L. -lspec
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: