SRC = convex.c  dfsm.c dserialization.c  engine.c generated.c ndfsm.c register.c serialization.c system.c timemark.c ts.c
HEADERS = convex.h dfsm.h engine.h engine_tsi.h generated.h ndfsm.h register.h register_tsi.h serialization.h system.h timemark.h ts.h 


# DEBUG=-g
DEBUG=

RELEASE=-O
#RELEASE=-pg

#LINK_RELEASE=-pg

LINK_FLAG=$(DEBUG)
LIBS=

CXX=gcc

INCD=-I.. -include "unistd.h"

CXXCOMP= $(CXX) $(INCD) $(DEBUG) $(RELEASE)
CXXLINK= $(CXX) $(LINK_FLAG)
MAKEAR= ar r

RM=rm -rf

OBJS= ${SRC:.c=.o}

all: libts.a

libts.a: $(OBJS)
	$(MAKEAR) libts.a $(OBJS)
	ranlib libts.a

clean:
	- $(RM) $(TEMP_FILES) core

.SUFFIXES:  .o .c .i .cpp

.cpp.o:
	$(CXXCOMP) -c $*.cpp

.c.o:
	$(CXXCOMP) -c $*.c

.cpp.i:
	$(CXXCOMP) -E $*.cpp > $*.i

.c.i:
	$(CXXCOMP) -E $*.c > $*.i

TEMP_FILES= *.o *.a *.i *.i0 *.i1 *.i2 *.i3 errors


