################################################################################
# Makefile for mdate++                                                         
#
# This makefile contains user serviceable parts!
#
# If the CFLAGS bother you, please dont change -ffloat-store which avoids
# architecture-related problems.
#
# There isn't an install target yet.
################################################################################

CC=g++
INC=-I/usr/include -I.
CFLAGS=-O3 -Wall -fomit-frame-pointer -ffloat-store $(INC) -DHAVE_CONFIG_H
LIBS=-lm

OBJS=mdate.o cmdline.o main.o

mdate: $(OBJS) $(LIBS)
	$(CC) $(CFLAGS) -o mdate $(OBJS) $(LIBS)

mdate.o: config.h mdate.hh
cmdline.o: config.h mdate.hh cmdline.h
main.o: config.h mdate.hh cmdline.h


.PHONY: clean

clean:
	-rm -f mdate $(OBJS)
