remove path error, fix file extension

This commit is contained in:
Jim Monte 2020-04-25 19:55:47 +02:00 committed by Holger Vogt
parent 654c9767d6
commit 004b27bd92
1 changed files with 10 additions and 5 deletions

View File

@ -43,15 +43,20 @@ clean:
#-----------------------------------------------------------------------------
NGSRCDIR = $(srcdir)/../../
NGSRCDIR = $(srcdir)/../..
dstring.o : $(NGSRCDIR)/misc/dstring.c $(NGSRCDIR)/include/ngspice/dstring.h
$(COMPILE) -I$(NGSRCDIR)/include/ngspice -o $@ -c $<
dstring.o: $(NGSRCDIR)/misc/dstring.c $(NGSRCDIR)/include/ngspice/dstring.h
$(CC) $(CFLAGS) -I$(NGSRCDIR)/include -fPIC -o $@ -c $<
ifdef cm
modlst := $(shell cat $(srcdir)/$(cm)/modpath.lst)
udnlst := $(shell cat $(srcdir)/$(cm)/udnpath.lst)
ifeq ($(OS),Windows_NT)
cmpp = ../cmpp/cmpp.exe
else
cmpp = ../cmpp/cmpp
endif
modlst := $(shell $(cmpp) -p $(srcdir)/$(cm)/modpath.lst)
udnlst := $(shell $(cmpp) -p $(srcdir)/$(cm)/udnpath.lst)
cm-dirs := $(cm) $(udnlst:%=$(cm)/%) $(modlst:%=$(cm)/%)
cm-dep-dirs := $(cm-dirs:%=%/.deps)