# welcome - a program which always greets you
# See LICENSE file for copyright and license details.
#version
VERSION = 0.1
# paths
PREFIX = /usr/local
# includes and libs
INCS = -I$(PREFIX)/include
LIBS = -L$(PREFIX)/lib -lcurses -l curl -lpthread
# flags
CFLAGS = -pedantic -Wall -Os $(INCS)
LDFLAGS = $(LIBS)
# compiler and linker
CC = cc
SRC = welcome.c
OBJ = $(SRC:.c=.o)
all: options welcome
options:
@echo welcome build options:
@echo "CFLAGS = $(CFLAGS)"
@echo "LDFLAGS = $(LDFLAGS)"
@echo "CC = $(CC)"
.c.o:
$(CC) -c $(CFLAGS) $<
welcome: welcome.o
#gcc -Wall -lncurses -l curl welcome.c -o welcome
$(CC) -o $@ welcome.o $(LDFLAGS)
clean:
rm -f welcome $(OBJ)