7 CPPFLAGS=@CPPFLAGS@ @CURSES_CPPFLAGS@
10 ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) $(DEFS)
12 LIBS=../lib/libmrclient.a @CURSES_LIBS@ @LIBS@
15 INSTALL_PROGRAM=@INSTALL_PROGRAM@
22 exec_prefix=@exec_prefix@
25 MOBJS= acl.o attach.o cluster.o delete.o globals.o lists.o main.o menu.o \
26 menus.o nfs.o pobox.o quota.o user.o utils.o dcmmaint.o printer.o \
28 NOBJS= namespace.o globals.o lists.o menu.o pobox.o user.o utils.o misc.o
29 OBJS= ${MOBJS} ${NOBJS}
31 TARGET=moira namespace
34 $(CC) -c $(ALL_CFLAGS) $<
39 rm -f $(OBJS) $(TARGET)
41 cleandir distclean: clean
47 $(INSTALL_PROGRAM) namespace $(bindir)
48 $(INSTALL_PROGRAM) moira $(bindir)
49 rm -f $(bindir)/listmaint
50 ln -s moira $(bindir)/listmaint
51 rm -f $(bindir)/dcmmaint
52 ln -s moira $(bindir)/dcmmaint
53 rm -f $(bindir)/usermaint
54 ln -s moira $(bindir)/usermaint
56 moira: $(MOBJS) ../lib/libmrclient.a $(MR_LIBDEP)
57 $(CC) -o $@ $(LDFLAGS) $(MOBJS) $(LIBS)
59 namespace: $(NOBJS) ../lib/libmrclient.a $(MR_LIBDEP)
60 $(CC) -o $@ $(LDFLAGS) $(NOBJS) $(LIBS)