MKDIR      = mkdir -p
INSTALLBIN = install -m 644 -o root -g root

testing.agent: test_agent.c
	$(CC) $(CFLAGS) -o $@ $<

install: testing.agent
	$(MKDIR) $(ROOTDIR)/usr/sbin/pamc
	$(INSTALLBIN) testing.agent $(ROOTDIR)/usr/sbin/pamc

remove:
	rm -f /usr/sbin/pamc/testing.agent

clean:
	rm -f testing.agent core output

extraclean: clean
	rm -f *~
