Screen don't get update after search & replace.
[eco.git] / Makefile
blob2df8b9d9d662d96c82343a1cf2700c4f45a028f8
2 # Makefile for Eco.
6 # Custom options.
7 BUILD =
10 # Install directory.
11 PREFIX = $(HOME)
12 BINDIR = $(PREFIX)/bin
15 # User OPTIONS
18 # Add the following line to get an eco.debug file
19 #BUILD += -DWITH_DEBUG
22 # End of user options
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
31 CC = gcc
32 CFLAGS = -O2 -Wall -g
33 LIBS = -lcurses
35 TARGET = eco
37 .PHONY: clean install uninstall
39 all: modules
40 @echo " Link $(TARGET)"; \
41 $(CC) $(MODULES) -o $(TARGET) $(LIBS) $(CFLAGS) $(BUILD)
43 modules:
44 @echo "Building Modules"; \
45 for i in $(SOURCE); do \
46 echo " CC $$i"; \
47 $(CC) -c $$i $(CFLAGS) $(BUILD) || exit 1; \
48 done
50 clean:
51 rm -f $(MODULES) $(TARGET)
53 install:
54 cp $(TARGET) $(BINDIR)
56 uninstall:
57 rm -f $(BINDIR)/$(TARGET)