mirror of
https://github.com/brmlab/misc.git
synced 2025-06-07 17:34:08 +02:00
add Makefile.tpl
This commit is contained in:
parent
4e416d92d5
commit
ab01dfa6d3
2 changed files with 21 additions and 0 deletions
19
Makefile.tpl
Normal file
19
Makefile.tpl
Normal file
|
@ -0,0 +1,19 @@
|
|||
NAME=@EDITME@
|
||||
CC=gcc
|
||||
CXX=g++
|
||||
CFLAGS=$(shell pkg-config --cflags @EDITME@) -Wall
|
||||
CXXFLAGS=$(CFLAGS)
|
||||
LDFLAGS=$(shell pkg-config --libs @EDITME@)
|
||||
OBJ=$(NAME).o
|
||||
|
||||
$(NAME): $(OBJ)
|
||||
$(CC) $(OBJ) -o $(NAME) $(LDFLAGS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c $< -o $@ $(CFLAGS)
|
||||
|
||||
%.o: %.cpp
|
||||
$(CXX) -c $< -o $@ $(CXXFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f $(NAME) $(OBJ)
|
2
README
2
README
|
@ -6,3 +6,5 @@ annoncer.py
|
|||
barcodes.py
|
||||
- generates CODE-128 barcodes using zint
|
||||
|
||||
Makefile.tpl
|
||||
- universal makefile template
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue