Basic syntax system, right now only C and hardcode in eco!
[eco.git] / Makefile
blob7baaa8556c12511e7b8b7768ed1685b7b0192350
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 += list.o
44 OBJS += fd.o
45 OBJS += time.o
46 OBJS += timer.o
47 OBJS += syntax.o
49 TARGET = eco
51 .PHONY: clean install uninstall
53 all: $(TARGET)
55 $(TARGET) : $(OBJS)
56 $(CC) $(OBJS) -o $(TARGET) $(LIBS) $(CFLAGS) $(BUILD)
58 %.o : %.c
59 $(CC) -c $(CFLAGS) $< -o $@
61 clean:
62 rm -f $(OBJS) $(TARGET)
64 install:
65 cp $(TARGET) $(BINDIR)
67 uninstall:
68 rm -f $(BINDIR)/$(TARGET)