#
# pTools: Process Information Utilities
# Stephen Oberther
# oberther@cs.fsu.edu
#
# make rules for building the ptools
# library and object files
#

include ../Config

COPTS = -D_FORCE_POSIX_

CFLAGS += $(COPTS)
AR = ar

FILES = pid.o args.o sig_list.o syscall_list.o

.c.o:
	$(CC) $(CFLAGS) -c $<

all: libptools.a

libptools.a: Makefile $(FILES)
	$(AR) rcs libptools.a $(FILES)

sig_list.o: sig_list.c ../include/sig_list.h
	$(CC) $(CFLAGS) -c sig_list.c

syscall_list.o: syscall_list.c ../include/syscall_list.h
	$(CC) $(CFLAGS) -c syscall_list.c

# Clean up the source directory
clean: clean-tex
	rm -f *.o libptools.a *~

clean-tex:
	rm -f *.aux *.dvi *.log
