# build dynamic library with -fPIC -shared
CFLAGS = -g # -O3 -fPIC # CXXFLAGS for .cpp
CPPFLAGS = -MMD -MP # -I../foo -DNDEBUG
LDFLAGS = # -L../foo -shared
LDLIBS = # -lfoo
#CC = $(CXX) # link with CXX for .cpp
# target name is basename of one of the source files
main: $(patsubst %.c,%.o,$(wildcard *.c)) # .cpp
-include *.d
clean: ; $(RM) *.o *.d main
.PHONY: clean
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.