File: Makefile

package info (click to toggle)
libbitarray 2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: ansic: 4,401; makefile: 117; cpp: 19; sh: 11
file content (22 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ifndef CC
	CC = gcc
endif

CFLAGS = -Wall -Wextra -I.. -L..

all: example_cpp example_c

example_cpp: example.cpp ../libbitarr.a
	$(CXX) $(CFLAGS) -o example_cpp example.cpp -lbitarr

example_c: example.c ../libbitarr.a
	$(CC) $(CFLAGS) -Wc++-compat -o example_c example.c -lbitarr

test: example_c example_cpp
	./example_c
	./example_cpp

clean:
	rm -rf example_cpp example_c *.o *.dSYM *.greg

.PHONY: all clean test