l3.libnazgul/test/Makefile
2020-03-03 23:46:22 +01:00

37 lines
637 B
Makefile

### HEADER HERE
# @CLASSPATH=$(CLASSPATH) $(JAVAC) $(JFLAGS) $<
#INCLUDES=-I/
#LIBINC=-L
#LIBS=
OSTYPE=$(shell uname -s)
CC=gcc
CFLAGS=-Wall --static
#-O2 -ggdb
INCLUDES=-I ../src/
LIBINC=-L ../src
LIBS=-lnazgul $(OSTYPE:Linux=-lrt)
PRJNAME=Libnazgul
GDATE := $(shell date +"-%Y-%m-%d_r%H")
GFILENAME := ../$(PRJNAME)$(GDATE).tar.bz2
LOCALDIR = $(shell pwd)
CFILES := $(shell ls *.c)
#OFILES := $(patsubst %.c,%.o,$(CFILES))
FILES := $(patsubst %.c,%,$(CFILES))
all: build
build : $(FILES)
clean:
@echo -e "Cleaning..."
@rm -f *.a
@rm -f *.o
@rm -f $(FILES)
% : %.c
$(CC) $(CFLAGS) $< -o $* $(INCLUDES) $(LIBINC) $(LIBS)