Source

oclogin / GNUmakefile.legacy

include ../../MasterMake.gnu

IPATH=-I../../src \
      -I../../blake \
      -I../../NetBuffer \
      -I$(DAYBO_SHARED)stds \
      -I$(PREFIX_INC)

OBJS=oclogin$(O) events$(O) NetBuffer$(O)

MYLIBS=../../libblake$(LIB) \
       $(PREFIX_LIB)libdpcrtlmm$(LIB) \
       $(PREFIX_LIB)libdlini$(LIB) \
       $(PREFIX_LIB)libdybocryp$(LIB) \
       $(PREFIX_LIB)librttb$(LIB) \
       $(PREFIX_LIB)libdaybothreads$(LIB)

TARGET=oclogin
ERASE=perl $(DAYBO_SHARED)scripts/erase.pl

ifdef DAYBOTHREADS_PTH
THREADLIB=$(PTH_LIB)
else
THREADLIB=-lpthread
endif

all : $(TARGET)

$(TARGET) : $(OBJS) $(THISFILE)
	g++ -g -o $(TARGET) $(OBJS) $(MYLIBS) $(THREADLIB)

oclogin$(O) : oclogin.cpp $(THISFILE)
	g++ -c -g $(IPATH) -o oclogin$(O) oclogin$(CPP)

events$(O) : events.cpp $(THISFILE)
	g++ -c -g $(IPATH) -o events$(O) events$(CPP)

NetBuffer$(O) : ../../NetBuffer/NetBuffer$(CPP) $(THISFILE)
	g++ -c -g $(IPATH) -o NetBuffer$(O) ../../NetBuffer/NetBuffer$(CPP)

clean:
	$(ERASE) $(TARGET) $(OBJS)
	$(ERASE) $(TARGET).core core
	$(ERASE) typescript DPCRTLMM.LOG blake_mutant.log
	$(ERASE) $(RESPFILE)
	echo " " > $(DEPSFILE)

list:
	@$(DIR) $(TARGET)

depend:
	@echo Generating dependencies for ./clients/oclogin
	@$(DIR) *$(CPP) > $(RESPFILE)
	@$(PREFIX_DAYBODEP_BIN)daybodep $(IPATH) @$(RESPFILE) > $(DEPSFILE)

include $(DEPSFILE)