breily / slash

a unix shell

This URL has Read+Write access

slash / Makefile
100644 34 lines (26 sloc) 0.631 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Brian Reily
#
# Makefile for slash
#
# TODO:
# add 'install' rules
 
GCC = gcc
RL_FLAG = -lreadline
FLAGS = -Wall
OUTFILE = slash
 
OFILES = build/aliases.o build/bg.o build/builtin.o \
         build/environ.o build/error.o build/eval.o \
         build/globbing.o build/help.o build/init.o \
         build/input.o build/options.o build/parser.o \
         build/prompt.o build/redir.o build/slash.o
 
all: build/ slash
 
slash: $(OFILES)
$(GCC) $(RL_FLAG) $(FLAGS) $(OFILES) -o $(OUTFILE)
 
build/:
mkdir build/
 
build/%.o: src/%.c
@echo "gcc $*.c"
@$(GCC) -c -o $@ $(FLAGS) $<
 
clean:
rm -f build/*.o
rm -df build/