# Makefile to compile the 'pconv' program under UNIX.
# Part of Spectroscopic Toolkit version 1.40 by Pieter Suurmond november 11, 2002.
# Before running ST, you should first build and run this pconv program
# which produces a correct binary version of the spectroscopic database.

       # Name of executable (may be full (install-)pathnames):
PRG    = pconv
       # Compiler to user (or 'cc'):
CC     = gcc
       # Source file (only one single file):
SRC    = pconv.c
       # Compiler optimization level:
       # (-Wall is not recognised by MIPS compiler on SGI, for gcc only):
CFLAGS = -O2 -Wall
       # Object:
OBJ    = $(SRC:.c=.o)

all: $(PRG)

$(PRG): $(OBJ)
	$(CC) $(CFLAGS) $(OBJ) -o $(PRG)

clean:
	-rm $(OBJ) $(PRG) core

