upt-pt-labs/lab8/makefile

13 lines
199 B
Makefile
Raw Normal View History

2016-04-14 15:27:11 +00:00
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