-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (25 loc) · 889 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# ******************************************************* #
# #
# Makefile for gcc compiler. #
# #
# ***************************************************** #
CFLAGS = -g -I. -Wall -pedantic -ansi
LDFLAGS = -L.
LDLIBS = -lm
RM = /bin/rm -f
CC = gcc
# ***************************************************** #
.PHONY: all clean
# ***************************************************** #
.c.o:
$(CC) $(CFLAGS) -c $*.c
.c:
make $*.o
$(CC) $(CFLAGS) -o $* $*.o $(LDLIBS)
# ***************************************************** #
all: satisfyme
satisfyme: CP.o ksat.o
$(CC) $(CFLAGS) -o satisfyme CP.o ksat.o $(LDLIBS)
# ***************************************************** #
clean:
$(RM) *~ \#~ .\#* *.o satisfyme core a.out