Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SRCS = $(wildcard *.asm *.c *.cpp *.S)
- OBJS = $(addsuffix .o,$(basename $(SRCS)))
- CC = gcc
- CPPC = g++
- CFLAGS= -fPIC
- LIBPATH = -L../MaratisSDK-linux64/MCore/Libs -L../MaratisSDK-linux64/MEngine/Libs
- LIBS = -lc -lstdc++ -lMCore -lMEngine
- INCLUDES = -I../MaratisSDK-linux64/MCore/Includes/ -I../MaratisSDK-linux64/MEngine/Includes/
- all: $(OBJS)
- @gcc -shared -Wl,-soname,Game.so -o Game.so $(LIBPATH) $(LIBS)
- @cp Game.so ../../
- %.o: %.c
- @echo "( Compiling $^ )"
- @$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $^
- %.o: %.cpp
- @echo "( Compiling $^ )"
- @$(CPPC) $(CFLAGS) $(INCLUDES) -c -o $@ $^
- clean:
- rm -f $(OBJS)
- .PHONY: clean all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement