diff options
| author | 贺文梁 <[email protected]> | 2018-11-30 17:44:14 +0800 |
|---|---|---|
| committer | 贺文梁 <[email protected]> | 2018-11-30 17:44:14 +0800 |
| commit | 5bb1e154a752a273f3b8374757e9aacb48c08668 (patch) | |
| tree | f8532be83f05b0cd1d0a9b78c1c36b3f6370353e | |
| parent | 031ae07542c53764dd178b1607e88c69fcc793ae (diff) | |
| -rw-r--r-- | src/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..9a08117 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,21 @@ +cc = gcc + +TARGET_DIR = /home/hewenliang/sapp/plug/business/tls_test/ +TARGET = tls_test.so +SOURCES = $(wildcard *.c) +OBJECTS = $(SOURCES:.c=.o) +INCLUDES += -I/usr/include/MESA/ + +CFLAGS = -g -Wall -fPIC +CFLAGS += $(INCLUDES) + +$(TARGET) : $(OBJECTS) + cc -g -Wall -shared $(OBJECTS) -o $(TARGET) +$(OBJECTS) : $(SOURCES) + cc $(CFLAGS) -c $(SOURCES) + +.PHONY : clean install +clean: + rm $(OBJECTS) $(TARGET) +install: + cp $(TARGET) $(TARGET_DIR) |
