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

12 lines
199 B
Makefile

CC = gcc
TARGET = my_string
CFLAGS = -Wall -O3
all: $(TARGET)
$(TARGET):
$(CC) $(CFLAGS) -c str.c
ar rcs libstr.a str.o
$(CC) $(CFLAGS) main.c -o $(TARGET).x -L. -lstr
clean:
$(RM) $(TARGET).x