include ../ENVIRONMENT

#CC = cc
#CFLAGS = -O
#LIB = -lmalloc

GLOBAL_DIR = ../global

HTML_LOCAL_OBJS = \
	txt2html.o

HLP_LOCAL_OBJS = \
	txt2hlp.o

GLOBAL_OBJS = 

all: txt2html txt2hlp hlp html

txt2html: $(HTML_LOCAL_OBJS)
	$(CC) -o $@ $(LFLAGS) \
		$(HTML_LOCAL_OBJS) \
		$(LIB)

txt2hlp: $(HLP_LOCAL_OBJS)
	$(CC) -o $@ $(LFLAGS) \
		$(HLP_LOCAL_OBJS) \
		$(LIB)

local_objects: $(LOCAL_OBJS)

locals:
	$(MAKE) local_objects

globals:
	cd $(GLOBAL_DIR); $(MAKE) *****

.c.o:;  $(CC) -c $(CFLAGS) $<

hlp:
	txt2hlp azara
	txt2hlp combine
	txt2hlp components
	txt2hlp connect
	txt2hlp contours
	txt2hlp deflate
	txt2hlp extract
	txt2hlp peak_find
	txt2hlp peak_fit
	txt2hlp plot1
	txt2hlp plot2
	txt2hlp process
	txt2hlp project
	txt2hlp slides
	txt2hlp reflate
	txt2hlp unblock
	txt2hlp viewer
	txt2hlp plot2/baseline
	txt2hlp plot2/data
	txt2hlp plot2/extract
	txt2hlp plot2/levels
	txt2hlp plot2/object
	txt2hlp plot2/output
	txt2hlp plot2/peak
	txt2hlp plot2/peaks
	txt2hlp plot2/phase
	txt2hlp plot2/property
	txt2hlp plot2/region
	txt2hlp plot2/rowcol
	txt2hlp plot2/save
	txt2hlp plot2/tracking
	txt2hlp plot1/button
	txt2hlp plot1/data
	txt2hlp plot1/object
	txt2hlp plot1/output
	txt2hlp plot1/property
	txt2hlp plot1/region
	txt2hlp plot1/slider
	txt2hlp plot1/text

html:
	txt2html azara
	txt2html combine
	txt2html components
	txt2html connect
	txt2html contours
	txt2html deflate
	txt2html extract
	txt2html peak_find
	txt2html peak_fit
	txt2html plot1
	txt2html plot2
	txt2html process
	txt2html project
	txt2html slides
	txt2html reflate
	txt2html unblock
	txt2html viewer
	txt2html plot2/baseline
	txt2html plot2/data
	txt2html plot2/extract
	txt2html plot2/levels
	txt2html plot2/object
	txt2html plot2/output
	txt2html plot2/peak
	txt2html plot2/peaks
	txt2html plot2/phase
	txt2html plot2/property
	txt2html plot2/region
	txt2html plot2/rowcol
	txt2html plot2/save
	txt2html plot2/tracking
	txt2html plot1/button
	txt2html plot1/data
	txt2html plot1/object
	txt2html plot1/output
	txt2html plot1/property
	txt2html plot1/region
	txt2html plot1/slider
	txt2html plot1/text
	txt2html CHANGES
	txt2html INSTALL
	txt2html README-2.7
	txt2html CHANGES-1.0-1
	txt2html CHANGES-1.0-2
	txt2html CHANGES-1.0-3
	txt2html CHANGES-2.0-0
	txt2html CHANGES-2.5-0
	txt2html CHANGES-2.6-0
	txt2html CHANGES-2.7-0
	txt2html LICENSE

clean:
	rm *.o

realclean:
	rm *.o
	rm txt2hlp
	rm txt2html
