mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-23 01:10:32 +08:00
Update Makefile
This commit is contained in:
parent
11a166d351
commit
84b69e2330
14
Makefile
14
Makefile
|
@ -3,7 +3,7 @@
|
||||||
# License : GPLv3
|
# License : GPLv3
|
||||||
# Authors : Aoran Zeng <ccmywish@qq.com>
|
# Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
# Created on : <2023-08-28>
|
# Created on : <2023-08-28>
|
||||||
# Last modified : <2023-09-14>
|
# Last modified : <2023-09-20>
|
||||||
# ---------------------------------------------------------------
|
# ---------------------------------------------------------------
|
||||||
|
|
||||||
CFLAGS = # -Wall
|
CFLAGS = # -Wall
|
||||||
|
@ -12,6 +12,12 @@ CFLAGS = # -Wall
|
||||||
ifeq ($(OS), Windows_NT)
|
ifeq ($(OS), Windows_NT)
|
||||||
CLANG_FLAGS = -target x86_64-pc-windows-gnu
|
CLANG_FLAGS = -target x86_64-pc-windows-gnu
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(CC), clang)
|
||||||
|
CFLAGS += $(CLANG_FLAGS)
|
||||||
|
endif
|
||||||
|
ifeq ($(shell uname), Linux)
|
||||||
|
CFLAGS += -static
|
||||||
|
endif
|
||||||
|
|
||||||
TARGET = chsrc
|
TARGET = chsrc
|
||||||
|
|
||||||
|
@ -19,12 +25,8 @@ CI_BUILD_NAME = chsrc
|
||||||
#=======================
|
#=======================
|
||||||
|
|
||||||
all:
|
all:
|
||||||
ifeq ($(CC), clang)
|
|
||||||
@$(CC) chsrc.c $(CLANG_FLAGS) $(CFLAGS) -o $(TARGET)
|
|
||||||
else
|
|
||||||
@$(CC) chsrc.c $(CFLAGS) -o $(TARGET)
|
@$(CC) chsrc.c $(CFLAGS) -o $(TARGET)
|
||||||
endif
|
@echo; echo Compile done using \'$(CC)\' $(CFLAGS)
|
||||||
@echo Compile done using \'$(CC)\' $(CFLAGS)
|
|
||||||
|
|
||||||
CI: all
|
CI: all
|
||||||
@mv chsrc $(CI_BUILD_NAME)
|
@mv chsrc $(CI_BUILD_NAME)
|
||||||
|
|
4
chsrc.h
4
chsrc.h
|
@ -3,7 +3,7 @@
|
||||||
* License : GPLv3
|
* License : GPLv3
|
||||||
* Authors : Aoran Zeng <ccmywish@qq.com>
|
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Created on : <2023-08-29>
|
* Created on : <2023-08-29>
|
||||||
* Last modified : <2023-09-18>
|
* Last modified : <2023-09-20>
|
||||||
*
|
*
|
||||||
* chsrc:
|
* chsrc:
|
||||||
*
|
*
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
#include "xy.h"
|
#include "xy.h"
|
||||||
#include "sources.h"
|
#include "sources.h"
|
||||||
|
|
||||||
#define Chsrc_Version "v0.1.0-20230918.pre"
|
#define Chsrc_Version "v0.1.0-20230920.pre"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user