emacs_lispdir := $(shell pkg-config emacs --variable sitepkglispdir)
# Hard-code if this system doesn't have an emacs.pc file
ifeq ($(emacs_lispdir),)
- emacs_lispdir = $(prefix)/share/site-lisp
+ emacs_lispdir = $(prefix)/share/emacs/site-lisp
endif
all_deps = Makefile Makefile.local Makefile.config \
include Makefile.config
%.o: %.cc $(all_deps)
- $(CXX) -c $(CFLAGS) $(CXXFLAGS) $< -o $@
+ $(CXX) -c $(CXXFLAGS) $< -o $@
%.o: %.c $(all_deps)
$(CC) -c $(CFLAGS) $< -o $@