upt-pt-labs/lab8/makefile
2016-04-14 18:27:25 +03:00

17 lines
290 B
Makefile

CC = gcc
TARGET1 = 1
TARGET2 = 2
CFLAGS = -Wall -O3
all: $(TARGET1) $(TARGET2)
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)
clean:
$(RM) $(TARGET1)
$(RM) $(TARGET2)