12 BINDIR
= $(PREFIX
)/bin
18 # Add the following line to get an eco.debug file
19 #BUILD += -DWITH_DEBUG
25 SOURCE
= term.c screen.c status.c key.c main.c buffer.c update.c file.c \
26 cmd.c debug.c func.c config.c kill.c view.c
28 MODULES
= term.o screen.o status.o key.o main.o buffer.o update.o file.o \
29 cmd.o debug.o func.o config.o kill.o view.o
37 .PHONY
: clean install uninstall
40 @echo
" Link $(TARGET)"; \
41 $(CC
) $(MODULES
) -o
$(TARGET
) $(LIBS
) $(CFLAGS
) $(BUILD
)
44 @echo
"Building Modules"; \
45 for i in
$(SOURCE
); do \
47 $(CC
) -c
$$i $(CFLAGS
) $(BUILD
) || exit
1; \
51 rm -f
$(MODULES
) $(TARGET
)
54 cp
$(TARGET
) $(BINDIR
)
57 rm -f
$(BINDIR
)/$(TARGET
)