Skip to content

Instantly share code, notes, and snippets.

@ychsiao168
ychsiao168 / Makefile
Created March 5, 2023 10:30
C Project Makefile Template
#===============================================================================
# Description: C Project Makefile Template
# Author:
#
#===============================================================================
#===============================================================================
# TOOL CHAIN and SHELL TOOL
#===============================================================================
CC = gcc
LD = $(CC)
@ychsiao168
ychsiao168 / foo.c
Created March 6, 2023 06:45
C file template
//==============================================================================
/*
File Name: xxx.c
Created: 202X//
Author:
Description:
@ychsiao168
ychsiao168 / Makefile
Created April 18, 2023 01:47
kernel module Makefile Template
#===============================================================================
# Description: kernel module Makefile Template
#===============================================================================
#===============================================================================
# Project VARS
#===============================================================================
PWD := $(shell pwd)
KVERSION := $(shell uname -r)
KERNEL_DIR := /usr/src/linux-headers-$(KVERSION)/