Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### Start of system configuration section ####
- # use gcc or gcc-3.3
- CC = gcc
- LD = gcc
- PROG = ml_base.so
- CXX = gcc
- CPP = gcc
- # Compiler flags
- # NOTE: add -g for debug, remove for release!
- CPPFLAGS = -MD -Wall -I./ -std=gnu++11
- LDFLAGS = -fPIC -shared -Wl,-soname,$(PROG).1,-R./
- LIBS = -lpthread -lstdc++ -llua5.1
- #### End of system configuration section ####
- #### Source and object files
- SRC_LOCAL = $(wildcard ./*.cpp)
- OBJ_LOCAL = $(patsubst %.cpp,%.o,$(SRC_LOCAL))
- OBJS = $(OBJ_LOCAL)
- SRCS = $(SRC_LOCAL)
- DEPS = $(patsubst %.o,%.d,$(OBJS))
- #### Make rules
- all : ml_base
- ml_base : $(OBJS)
- $(CC) $(CPPFLAGS) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
- clean :
- @rm *.o
- @rm *.d
- @rm $(PROG)
- -include $(DEPS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement