常用的乙個簡單生成靜態庫的makefile

2021-04-09 07:25:56 字數 832 閱讀 7615

#*********************************************

# makefile (linux) for s21sdk sample : testnc

#*********************************************

shell = /bin/sh

cc = mipsel-linux-gcc

ar = mipsel-linux-ar

ccsipdir ?= $(shell cd "../../" && pwd)

cflag = -o2 -w -wall

incpath = -i./include -i./src -i../../../include/ -i$(ccsipdir)/common/include -i$(ccsipdir)/include

test_target = ./lib/libntp1.a

test_obj = csip_ntp.o

test_src = ./src/csip_ntp.c

all : $(test_target)

$(test_obj): $(test_src)

$(cc) $(cflag) $(incpath) -c $(test_src)

$(test_target) : $(test_obj)

$(ar) cq $@ $^

# $(ar) $(trglinkopt) cq $@ $^

# $(cc) -o $@ $(test_obj) $(libs)

# clean

clean:

rm -f *.o $(test_target) 

Ma的,又乙個部落格

幾個月前,看到了blogchina上的牛人的blog,也看到了csdn上一大群牛人的blog,心中自然想模仿起來。沒想到接連使用了2個blog站點。那兩個blog站點竟相繼在很短的時間內無法登陸。時至今日連網域名稱都解析不了了。可惜我在那兩個blog上的一些文章也隨之而去。csdn也開了blog了。...

ASP 的乙個靜態頁生成類

asp支援與資料庫 的互動,如microsoft sql server microsoft access mysql 和oracle 比較流行的是asp和microsoft sql server的組合。組織了下,寫了個靜態頁生成類 htmlmaker.asp 類檔案 janchie 2004 11 ...

乙個簡單的靜態郵箱登入介面

已上傳至github 使用者名稱是tom,密碼是123,當輸入錯誤時 賬號密碼為空 輸入正確的賬號密碼時跳 首先是css,我隨便寫的,沒有和原網頁一致,差不多就好 top all all first login,all first pas all second number all second p...