upt-pt-labs/lab08/makefile
2016-04-25 20:35:41 +03:00

17 lines
296 B
Makefile

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