#***************************************************************** # Makefile # # Copyright (C) 2009 Andrey Y. Rjavskov(aka rjaan) # #****************************************************************/ CC= gcc CFLAGS= -g -O2 -I.. -I. -I./ LDFLAGS = -lm PWD_PATH = $(shell pwd) OBJECTS= sthp.o .SUFFIXES: .c .c.o: $(CC) -c $(CFLAGS) -o $@ $< all: sthp_cli sthp_serv sthp_cli: $(OBJECTS) sthp_cli.o $(CC) sthp_cli.o $(OBJECTS) -o sthp_cli $(LDFLAGS) sthp_serv: $(OBJECTS) sthp_serv.o $(CC) sthp_serv.o $(OBJECTS) -o sthp_serv $(LDFLAGS) clean: rm -f *.o core* sthp_cli sthp_serv *~ sthp_client.o: sthp_serv.c sthp.h sthp_client.o: sthp_cli.c sthp.h sthp.o: sthp.c sthp.h #eof