aboutsummaryrefslogtreecommitdiff
path: root/Linux_C_12/Makefile
blob: 95db9d4ba4df0385a27e1171aefdcdad4ee99f55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SHELL=/bin/bash

CC=gcc
CC_OPTS=-Wfatal-errors -m64 -lm -g -O0 -c `pkg-config --cflags --libs gtk+-2.0`

SRC=$(wildcard *.c)
OBJ=$(patsubst %.c,%.o,$(SRC))

%.o : %.c %.h
	$(CC) $< $(CC_OPTS)

# the TCP file has some unresolved dependencies
all: $(filter-out cTCP_121.o, $(OBJ))

clean:
	rm *.o

rebuild: clean all

.PHONY: all clean rebuild