summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2019-11-01 18:02:52 +0800
committerliuxueli <[email protected]>2019-11-01 18:02:52 +0800
commit0bcaeed0b040ceee1eba686c321dbe17db0fca5c (patch)
treee632a733d963c55b9118c7464b4b32e8bb6af0e9 /src/Makefile
create version
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..29742d2
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,24 @@
+CC = g++
+CCC = g++
+CFLAGS = -Wall -g -fPIC
+INC = -I/opt/MESA/include/MESA/
+LDFLAGS = -L/opt/MESA/lib/
+LIBS = -lMESA_handle_logger -lMESA_prof_load -lcjson
+OBJ = ntc_radius_plug.o
+TARGET = ntc_radius_plug.so
+
+.c.o:
+ $(CC) -c $(CFLAGS) $< $(INC)
+.cpp.o:
+ $(CCC) -c $(CFLAGS) $(INC) $<
+
+all: $(TARGET)
+
+$(TARGET): $(OBJ)
+ $(CCC) -o $@ $(OBJ) $(LDFLAGS) $(LIBS) -shared
+ cp $(TARGET) ../bin/
+
+clean:
+ -rm -rf $(OBJ) $(TARGET)
+
+.PHONY:clean