File: example_makefile

package info (click to toggle)
check 0.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 4,172 kB
  • sloc: sh: 12,229; ansic: 9,044; makefile: 379
file content (11 lines) | stat: -rw-r--r-- 269 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
# this is a very simple makefile for the 
# check examples. in a real-world situation 
# you would have to modify your make setup accordingly.

LDFLAGS=-lcheck

check_example: check_money.o money.o
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) 

%.o: %.c
	$(CC) $(CFLAGS) -c $<