head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2003.03.26.12.06.14;	author gang;	state Exp;
branches;
next	1.1;

1.1
date	2003.03.26.11.00.20;	author gang;	state Exp;
branches;
next	;


desc
@@


1.2
log
@*** empty log message ***
@
text
@# If MySQL user name is not 'admin', uncomment and change 'user' to
# other name in the next line.
MYSQL_USER = -DMYSQL_CLIENT_USER='"gang"' -DMYSQL_SERVER_USER='"gang"'

INCLUDES = -I/usr/include/snacc/c++
LIBS = -lasn1c++ -lmysqlclient
CPPFLAGS = -g $(INCLUDES) -DSNACC_DEEP_COPY $(MYSQL_USER)

OBJS = simple_pisd_asn1.o realm.o realm_htmlindex.o pdu.o \
	realm_serviceindex.o server_mysql.o pisd_net.o

OUTS = r_update_start s_update_start s_daemon

all: $(OUTS)

s_daemon: $(OBJS) s_daemon.o
	$(CXX) -o $@@ $(OBJS) $@@.o $(LIBS)

r_update_start: $(OBJS) r_update_start.o
	$(CXX) -o $@@ $(OBJS) $@@.o $(LIBS)

s_update_start: $(OBJS) s_update_start.o
	$(CXX) -o $@@ $(OBJS) $@@.o $(LIBS)

simple_pisd_asn1.h: simple_pisd_asn1.asn1
	snacc -C simple_pisd_asn1.asn1 -u /usr/include/snacc/asn1/asn-useful.asn1

simple_pisd_asn1.C: simple_pisd_asn1.asn1

#simple_pisd_asn1.o: simple_pisd_asn1.h

clean:
	rm simple_pisd_asn1.h simple_pisd_asn1.C *.o $(OUTS) tags

dep:
	makedepend -Y *.C 2>/dev/null

tag:
	ctags *h *C /usr/include/snacc/c++/*h
# DO NOT DELETE

pdu.o: pdu.h simple_pisd_asn1.h
pisd_net.o: pisd_net.h pdu.h simple_pisd_asn1.h
r_update_start.o: realm_htmlindex.h realm.h simple_pisd_asn1.h pdu.h
r_update_start.o: pisd_net.h
realm.o: realm.h simple_pisd_asn1.h
realm_htmlindex.o: realm_htmlindex.h realm.h simple_pisd_asn1.h
realm_serviceindex.o: realm_serviceindex.h realm.h simple_pisd_asn1.h
s_daemon.o: realm_htmlindex.h realm.h simple_pisd_asn1.h pdu.h pisd_net.h
s_daemon.o: server_mysql.h
s_update_start.o: realm_serviceindex.h realm.h simple_pisd_asn1.h
s_update_start.o: server_mysql.h pdu.h pisd_net.h
server_mysql.o: server_mysql.h simple_pisd_asn1.h
simple_pisd_asn1.o: simple_pisd_asn1.h
@


1.1
log
@the first ed. of simple_pisd
@
text
@d1 4
d7 1
a7 1
CPPFLAGS = -g $(INCLUDES) -DSNACC_DEEP_COPY
d33 1
a33 1
	rm simple_pisd_asn1.h simple_pisd_asn1.C *.o $(OUTS)
@

