INSTALL = install
RM = /bin/rm -f

GEN = ./gen_class.php
DB = pgimage
DBC = DB_Pgimage
CLASSES = albums.inc objs.inc auth_user.inc

all: $(CLASSES)

objs.inc: $(GEN)
	$(GEN) objs $(DBC) $(DB) > objs.inc

albums.inc: $(GEN)
	$(GEN) albums $(DBC) $(DB) > albums.inc

auth_user.inc: $(GEN)
	$(GEN) auth_user_md5 $(DBC) $(DB) > auth_user.inc

install: $(CLASSES)
	$(INSTALL) -c *.inc ../lib

clean:
	$(RM) $(CLASSES)
