123456789101112131415161718192021 |
- LIBS=-ljump -lm
- LDFLAGS=-L..
- UNAME_S := $(shell uname -s)
- ifeq ($(UNAME_S), Linux)
- LDFLAGS+=-Wl,-rpath -Wl,'$${ORIGIN}/..'
- endif
- CFLAGS=-I..
- include ../dylib.make
- demo: main.o ../$(DYLIB)
- cc -o $@ $(LDFLAGS) $< $(LIBS)
- main.o: main.c
- .PHONY: clean
- clean:
- rm -vf demo main.o
|