include $(CONFIG) H=@ LIBRARY=lib$(TARGET)$(STATICEXTENSION) all: $(LIBRARY) $(H)echo -n $(LIBRARY): getdate.y $(H)echo " compiling getdate.y -> getdate.o" $(H)bison -o getdate.c -p gd_ getdate.y $(H)$(CC) $(CFLAGS) -c getdate.c $(H)echo " linking $(LIBRARY)" $(H)$(AR) r $(LIBRARY) getdate.o 1>/dev/null 2>/dev/null $(H)cp $(LIBRARY) $(PREFIX)/lib $(H)cp getdate.h $(PREFIX)/include $(H)rm getdate.c clean: $(H)rm -f *.o .PHONY: all