#/* Makefile */

CFLAGS = -Ox -DUSG
CC = cc
SHELL = /bin/sh
LIBS =

libdir = /usr/local/lib

DIR = ./gcpp

OBJS = cpp.o cpy.o

# If you want to recompile everything, just do rm *.o.

all: cpp

compilations: ${OBJS}

cpp: $(OBJS)
	$(CC) $(CFLAGS) -o gcpp $(OBJS) $(LIBS)
	/bin/chmod 755 gcpp

# cpp modules

cpp.o: cpp.c

cpy.o: cpy.c yylex.c

cpy.c: cpy.y 

clean:
	-rm -f *.o gcpp
	-rm -f cpy.c
	-rm -f core

# Copy the files into directories where they will be run.
install: all
	install -s gcpp $(bindir)

# do make -f ../gcpp/Makefile maketest DIR=../gcpp

force:
