6 -include Makefile.local
8 SOURCES
:= TermWindow.
cpp Terminal.
cpp History.
cpp Line.
cpp Run.
cpp
9 SOURCES
+= Settings.
cpp UTF8.
cpp Colors.
cpp FontSet.
cpp main.
cpp
11 OBJECTS
= $(foreach source
,$(SOURCES
),$(OBJECTS_DIR
)/$(source
:.
cpp=.o
))
12 OBJECTS_SUBDIRS
= $(foreach dir,$(SUBDIRS
),$(OBJECTS_DIR
)/$(dir))
20 X11_INCLUDES
:= $(X11_TOP
)/include
21 X11_LIBS
:= $(X11_TOP
)/lib
26 CFLAGS
+= $(foreach switch
,$(SWITCHES
),-D
$(switch
))
28 CFLAGS
+= -std
=c
++11 -I
$(X11_INCLUDES
) `pkg-config --cflags fontconfig`
29 LINK_FLAGS
+= -L
$(X11_LIBS
) -lX11
-lXft
-lutil
`pkg-config --libs fontconfig`
31 $(OBJECTS_DIR
)/%.o
: %.
cpp
33 $(QUIET
) $(CPP
) -c
$< -g
$(CFLAGS
) -o
$@
35 $(OBJECTS
): |
$(OBJECTS_DIR
)
37 $(PROGRAM
): $(OBJECTS
)
39 $(QUIET
) $(CPP
) $(filter-out $(OBJECTS_DIR
),$^
) -g
$(LINK_FLAGS
) -o
$@
40 @echo
"---------------------------------------------"
45 $(QUIET
) mkdir
-p
$(OBJECTS_DIR
) $(OBJECTS_SUBDIRS
)
47 -include $(OBJECTS_DIR
)/*.d
52 @.
/$(PROGRAM
) $(RUN_ARGS
)