20 lines
610 B
Makefile
20 lines
610 B
Makefile
#--------------------------------------------------------------------#
|
|
# @date 2018-03-10 #
|
|
# #
|
|
# myexpand - A program to expand tabstops #
|
|
#--------------------------------------------------------------------#
|
|
|
|
CC = gcc
|
|
CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c
|
|
|
|
.PHONY all: myexpand
|
|
|
|
myexpand: myexpand.o
|
|
$(CC) -o $@ $^
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) $^
|
|
|
|
.PHONY clean:
|
|
rm -f myexpand.o myexpand
|