Rev 956 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed | ?url?
CC=gcc
MODELLIB=./sndpix.so
APPL=./viewer
#PLI_INCLUDE=$(HOME)/modelsim/10.0b/modeltech/include
PLI_INCLUDE=$(HOME)/modelsim/q10.7c/questasim/include
SRCLIB=./sndpix.c
SRCAPP=./viewer.c
all : $(APPL) $(MODELLIB) Makefile
#all : $(MODELLIB) Makefile
clean:
rm $(APPL) $(MODELLIB)
$(MODELLIB) : $(SRCLIB) sndpix.h Makefile
gcc -O2 -g -shared -Bsymbolic -fPIC -I$(PLI_INCLUDE) $(SRCLIB) -o $(MODELLIB)
$(APPL) : $(SRCAPP) Makefile
gcc -O2 -g $(SRCAPP) -o $(APPL) -lSDL