This repository has been archived on 2021-08-17. You can view files and clone it, but cannot push or open issues or pull requests.
unix/cpair/Makefile

19 lines
382 B
Makefile
Raw Permalink Normal View History

2018-12-08 21:34:47 +00:00
CC = gcc
CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c
TARGET = cpair
all: $(TARGET).c
$(CC) $(CFLAGS) $(TARGET).c
2018-12-12 21:06:56 +00:00
$(CC) $(TARGET).o -o $(TARGET) -lm
2018-12-08 21:34:47 +00:00
install:
cp $(TARGET) /usr/local/bin/$(TARGET)
clean:
$(RM) $(TARGET).o
$(RM) $(TARGET)
$(RM) *.tgz
package:
2018-12-15 22:01:57 +00:00
tar -cvzf $(TARGET).tgz $(TARGET).c Makefile