File: Makefile

package info (click to toggle)
cluster3 1.59%2Bds-3
  • links: PTS, VCS
  • area: non-free
  • in suites: bullseye
  • size: 5,624 kB
  • sloc: ansic: 9,948; python: 2,018; perl: 1,566; makefile: 132; sh: 27
file content (18 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
ifndef CC
CC=gcc
endif

OBJECTS = example.o cluster.o
SRCDIR = ../src

example.exe: $(OBJECTS)
	$(CC) -Wall $(OBJECTS) -o example.exe

example.o: example.c $(SRCDIR)/cluster.h
	$(CC) -c -Wall -I$(SRCDIR) example.c

cluster.o: $(SRCDIR)/cluster.c $(SRCDIR)/cluster.h
	$(CC) -c -Wall $(SRCDIR)/cluster.c

clean:
	rm -f example.exe example.o cluster.o