upt-pt-labs/lab08/makefile

18 lines
296 B
Makefile
Raw Normal View History

2016-04-14 15:27:11 +00:00
CC = gcc
2016-04-14 15:27:25 +00:00
TARGET1 = 1
TARGET2 = 2
2016-04-14 15:27:11 +00:00
CFLAGS = -Wall -O3
2016-04-14 19:57:03 +00:00
all: clean $(TARGET1) $(TARGET2)
2016-04-14 15:27:11 +00:00
2016-04-14 15:27:25 +00:00
1:
$(CC) $(CFLAGS) -c cipher.c
ar rcs libcipher.a cipher.o
$(CC) $(CFLAGS) $(TARGET1).c -o $(TARGET1) -L. -lcipher
2:
$(CC) $(CFLAGS) $(TARGET2).c -o $(TARGET2)
2016-04-14 15:27:11 +00:00
clean:
2016-04-14 15:27:25 +00:00
$(RM) $(TARGET1)
$(RM) $(TARGET2)