Add xterm-256color as a valid terminal.
[eco.git] / Makefile
blob943f985c8a5f4808e6444ea6ce0ece3d6702206b
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
21 CC = gcc
22 CFLAGS = -O2 -Wall -g -funsigned-char -Wdeclaration-after-statement -Werror
23 LIBS = -lcurses
26 # End of user options
29 OBJS = term.o
30 OBJS += screen.o
31 OBJS += status.o
32 OBJS += key.o
33 OBJS += main.o
34 OBJS += buffer.o
35 OBJS += update.o
36 OBJS += file.o
37 OBJS += cmd.o
38 OBJS += debug.o
39 OBJS += func.o
40 OBJS += config.o
41 OBJS += kill.o
42 OBJS += view.o
43 OBJS += time.o
44 OBJS += syntax.o
45 OBJS += list.o
47 TARGET = eco
49 .PHONY: clean install uninstall
51 all: $(TARGET)
53 $(TARGET) : $(OBJS)
54 $(CC) $(OBJS) -o $(TARGET) $(LIBS) $(CFLAGS) $(BUILD)
56 %.o : %.c
57 $(CC) -c $(CFLAGS) $(BUILD) $< -o $@
59 clean:
60 rm -f $(OBJS) $(TARGET)
62 install:
63 cp $(TARGET) $(BINDIR)
65 uninstall:
66 rm -f $(BINDIR)/$(TARGET)