#!/bin/bash
# -----------------------------------------------------------------
# FileName: Makefile.sh
# Date: 2020-01-13
# Author: jiftle
# Description: 
# 	构建配置文件
# 注意事项:
#		TAB作为缩进,不能是空格
# -----------------------------------------------------------------
# 编译器
CC = gcc

# 源代码目录
SRCDIR := $(PWD)

# 输出目标程序
TARGET = authcore.so

# 默认
# 	-fPIC 产生位置无关代码
all:
	$(CC) $(SRCDIR)/*.c -fPIC -shared -o $(TARGET)

# 清理
clean:
	rm $(TARGET)

# 安装
install:
	# 复制到调用者目录
	cp $(TARGET) /home/john/workspace/gowork/src/authserv/
uninstall:
	rm /home/john/workspace/gowork/src/authserv/$(TARGET)

相关文章:

  • 2021-06-07
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2021-05-14
  • 2021-09-09
  • 2022-12-23
  • 2022-02-16
猜你喜欢
  • 2021-06-17
  • 2021-10-18
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2021-05-07
  • 2021-11-02
相关资源
相似解决方案