This is an old revision of the document!


The standard ACT Makefile structure

The following is a simple Makefile that uses the ACT standard makefile to create an executable called example, and which links against the core ACT library as well as the default passes.

BINARY=example.$(EXT)

TARGETS=$(BINARY)

OBJS=main.o 
SRCS=$(OBJS:.o=.cc)

include $(ACT_HOME)/scripts/Makefile.std

$(BINARY): $(LIB) $(OBJS) $(ACTPASSDEPEND)
        $(CXX) $(CFLAGS) $(OBJS) -o $(BINARY) $(LIBACTPASS)

-include Makefile.deps