#- Program macros -------------------------------------------------

PROG = ../bin/ogsxmit
SUBDIRS = 
SRCS =
OBJS = ogsxmit.o ogsoptions.o ogslibrary.o boxmuller.o getopt.o
 
#- Common macros --------------------------------------------------

CC       = gcc

#CCFLAGS  = -g
#CCFLAGS  = -pg
CCFLAGS  = -O2

LDFLAGS   = -g
#LDFLAGS   = -pg

OGSLIBDIR = ../lib
OGSINCDIR = ../include

#- Main targets ---------------------------------------------------

$(PROG): $(OBJS)
	$(CC) $(LDFLAGS) -o $(PROG) $(OBJS) -lm

ogsxmit.o: ogsxmit.c $(OGSINCDIR)/ogsextern.h $(OGSINCDIR)/ogsstructs.h
	$(CC) $(CCFLAGS) -c -I$(OGSINCDIR) ogsxmit.c

ogsoptions.o: ogsoptions.c $(OGSINCDIR)/ogsextern.h $(OGSINCDIR)/ogsstructs.h
	$(CC) $(CCFLAGS) -c -I$(OGSINCDIR) ogsoptions.c

boxmuller.o: boxmuller.c
	$(CC) $(CCFLAGS) -c -I$(OGSINCDIR) boxmuller.c

ogslibrary.o: $(OGSLIBDIR)/ogslibrary.c $(OGSINCDIR)/ogsextern.h
	$(CC) $(CCFLAGS) -c -I$(OGSINCDIR) $(OGSLIBDIR)/ogslibrary.c

getopt.o: $(OGSLIBDIR)/getopt.c $(OGSINCDIR)/ogsextern.h
	$(CC) $(CCFLAGS) -c -I$(OGSINCDIR) $(OGSLIBDIR)/getopt.c

#- Secondary targets  ---------------------------------------------

#- Dependencies ---------------------------------------------------


