Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 79 lines (58 sloc) 2.83 kB
de8cae9 @clhodapp Added preliminary makefile
authored
1
2 SHELL = /bin/sh
3 SRCDIR = ./src
4 OBJDIR = ./obj
5 INCLUDEDIR = ./include
6 BINDIR = ./bin
3a2c92d @clhodapp build with -g when DEBUG is defined
authored
7 ifdef DEBUG
8 CFLAGS = -Wall -std=c99 -o2 -I $(INCLUDEDIR) -g
9 else
10 CFLAGS = -Wall -std=c99 -o2 -I $(INCLUDEDIR)
11 endif
de8cae9 @clhodapp Added preliminary makefile
authored
12
13
14 .SUFFIXES:
15 .SUFFIXES: .c .o
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
16 .PHONY: clean blip
de8cae9 @clhodapp Added preliminary makefile
authored
17
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
18 blip: $(BINDIR)/blip
19
a4f113e @clhodapp Updated makefile to use new main.c
authored
20 $(BINDIR)/blip: $(OBJDIR)/main.o $(OBJDIR)/lexeme.o $(OBJDIR)/lex.o $(OBJDIR)/darray.o \
de8cae9 @clhodapp Added preliminary makefile
authored
21 $(OBJDIR)/bigint.o $(OBJDIR)/bigfloat.o $(OBJDIR)/eval.o $(OBJDIR)/environment.o $(OBJDIR)/builtins.o \
9934cd5 @clhodapp Use pairs in parser and prettyprinter
authored
22 $(OBJDIR)/parser.o $(OBJDIR)/pair.o $(OBJDIR)/prettyprinter.o | $(BINDIR)
de8cae9 @clhodapp Added preliminary makefile
authored
23 $(CC) $(CFLAGS) -o $@ $^
24
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
25 $(OBJDIR)/bigfloat.o: $(SRCDIR)/bigfloat.c $(INCLUDEDIR)/bigfloat.h | $(OBJDIR)
de8cae9 @clhodapp Added preliminary makefile
authored
26 $(CC) $(CFLAGS) -c -o $@ $<
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
27
28 $(OBJDIR)/bigint.o: $(SRCDIR)/bigint.c $(INCLUDEDIR)/bigint.h | $(OBJDIR)
de8cae9 @clhodapp Added preliminary makefile
authored
29 $(CC) $(CFLAGS) -c -o $@ $<
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
30
de8cae9 @clhodapp Added preliminary makefile
authored
31 $(OBJDIR)/builtins.o: $(SRCDIR)/builtins.c $(INCLUDEDIR)/builtins.h $(INCLUDEDIR)/environment.h \
54a9bfa @clhodapp Use pairs for builtins
authored
32 $(INCLUDEDIR)/lexeme.h $(INCLUDEDIR)/bigint.h $(INCLUDEDIR)/bigfloat.h $(INCLUDEDIR)/eval.h \
33 $(INCLUDEDIR)/pair.h | $(OBJDIR)
de8cae9 @clhodapp Added preliminary makefile
authored
34 $(CC) $(CFLAGS) -c -o $@ $<
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
35
36 $(OBJDIR)/darray.o: $(SRCDIR)/darray.c $(INCLUDEDIR)/darray.h | $(OBJDIR)
de8cae9 @clhodapp Added preliminary makefile
authored
37 $(CC) $(CFLAGS) -c -o $@ $<
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
38
de8cae9 @clhodapp Added preliminary makefile
authored
39 $(OBJDIR)/environment.o: $(SRCDIR)/environment.c $(INCLUDEDIR)/environment.h $(INCLUDEDIR)/lexeme.h \
c2b80e4 @clhodapp Use pairs in environment
authored
40 $(INCLUDEDIR)/bigint.h $(INCLUDEDIR)/pair.h | $(OBJDIR)
de8cae9 @clhodapp Added preliminary makefile
authored
41 $(CC) $(CFLAGS) -c -o $@ $<
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
42
de8cae9 @clhodapp Added preliminary makefile
authored
43 $(OBJDIR)/eval.o: $(SRCDIR)/eval.c $(INCLUDEDIR)/eval.h $(INCLUDEDIR)/lexeme.h $(INCLUDEDIR)/bigint.h \
14ff98f @clhodapp eval.o depends on pair.h now
authored
44 $(INCLUDEDIR)/environment.h $(INCLUDEDIR)/prettyprinter.h $(INCLUDEDIR)/builtins.h $(INCLUDEDIR)/pair.h |$(OBJDIR)
de8cae9 @clhodapp Added preliminary makefile
authored
45 $(CC) $(CFLAGS) -c -o $@ $<
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
46
a4f113e @clhodapp Updated makefile to use new main.c
authored
47 $(OBJDIR)/main.o: $(SRCDIR)/main.c $(INCLUDEDIR)/eval.h $(INCLUDEDIR)/lexeme.h \
de8cae9 @clhodapp Added preliminary makefile
authored
48 $(INCLUDEDIR)/bigint.h $(INCLUDEDIR)/parser.h $(INCLUDEDIR)/lex.h $(INCLUDEDIR)/environment.h \
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
49 $(INCLUDEDIR)/prettyprinter.h | $(OBJDIR)
de8cae9 @clhodapp Added preliminary makefile
authored
50 $(CC) $(CFLAGS) -c -o $@ $<
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
51
de8cae9 @clhodapp Added preliminary makefile
authored
52 $(OBJDIR)/lexeme.o: $(SRCDIR)/lexeme.c $(INCLUDEDIR)/lexeme.h $(INCLUDEDIR)/bigint.h \
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
53 $(INCLUDEDIR)/bigfloat.h | $(OBJDIR)
de8cae9 @clhodapp Added preliminary makefile
authored
54 $(CC) $(CFLAGS) -c -o $@ $<
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
55
de8cae9 @clhodapp Added preliminary makefile
authored
56 $(OBJDIR)/parser.o: $(SRCDIR)/parser.c $(INCLUDEDIR)/lex.h $(INCLUDEDIR)/lexeme.h $(INCLUDEDIR)/bigint.h \
24d487a @clhodapp Parser.c: a few lingering pair-related issues
authored
57 $(INCLUDEDIR)/parser.h $(INCLUDEDIR)/pair.h | $(OBJDIR)
de8cae9 @clhodapp Added preliminary makefile
authored
58 $(CC) $(CFLAGS) -c -o $@ $<
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
59
de8cae9 @clhodapp Added preliminary makefile
authored
60 $(OBJDIR)/prettyprinter.o: $(SRCDIR)/prettyprinter.c $(INCLUDEDIR)/lex.h $(INCLUDEDIR)/lexeme.h \
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
61 $(INCLUDEDIR)/bigint.h $(INCLUDEDIR)/bigfloat.h $(INCLUDEDIR)/prettyprinter.h | $(OBJDIR)
de8cae9 @clhodapp Added preliminary makefile
authored
62 $(CC) $(CFLAGS) -c -o $@ $<
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
63
de8cae9 @clhodapp Added preliminary makefile
authored
64 $(OBJDIR)/lex.o: $(SRCDIR)/lex.c $(INCLUDEDIR)/lex.h $(INCLUDEDIR)/lexeme.h $(INCLUDEDIR)/bigint.h \
a49fc21 @clhodapp Use pairs in lex.c
authored
65 $(INCLUDEDIR)/darray.h $(INCLUDEDIR)/bigfloat.h $(INCLUDEDIR)/pair.h | $(OBJDIR)
de8cae9 @clhodapp Added preliminary makefile
authored
66 $(CC) $(CFLAGS) -c -o $@ $<
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
67
3312f68 @clhodapp Added pair data structure
authored
68 $(OBJDIR)/pair.o: $(SRCDIR)/pair.c $(INCLUDEDIR)/pair.h $(INCLUDEDIR)/lexeme.h $(INCLUDEDIR)/bigint.h
69 $(CC) $(CFLAGS) -c -o $@ $<
70
de8cae9 @clhodapp Added preliminary makefile
authored
71 clean:
d108d3e @clhodapp Updated makefile to generate bin and obj dirs
authored
72 $(RM) -r $(OBJDIR) $(BINDIR)
73
74 $(OBJDIR):
75 mkdir $@
76
77 $(BINDIR):
78 mkdir $@
Something went wrong with that request. Please try again.