first commit of version ported line by line from python
Not working correctly yet, errors when handling certain predigits
This commit is contained in:
commit
aac5409a72
6 changed files with 156 additions and 0 deletions
28
Makefile
Normal file
28
Makefile
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
CC=gcc
|
||||
CXX=g++
|
||||
RM=rm -f
|
||||
CPPFLAGS=-ggdb -Og -Wall
|
||||
LDFLAGS=-g
|
||||
LDLIBS=-lm
|
||||
|
||||
SRCS=main.cpp Spigot.cpp
|
||||
OBJS=$(subst .cpp,.o,$(SRCS))
|
||||
|
||||
all: main
|
||||
|
||||
main: $(OBJS)
|
||||
$(CXX) $(LDFLAGS) -o main $(OBJS) $(LDLIBS)
|
||||
|
||||
depend: .depend
|
||||
|
||||
.depend: $(SRCS)
|
||||
$(RM) ./.depend
|
||||
$(CXX) $(CPPFLAGS) -MM $^>>./.depend
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJS)
|
||||
|
||||
distclean: clean
|
||||
$(RM) *~ .depend
|
||||
|
||||
include .depend
|
||||
Loading…
Add table
Add a link
Reference in a new issue