2004-02-17 16:43:47 +00:00
|
|
|
### HEADER HERE
|
|
|
|
|
|
|
|
# @CLASSPATH=$(CLASSPATH) $(JAVAC) $(JFLAGS) $<
|
|
|
|
|
|
|
|
#INCLUDES=-I/
|
|
|
|
#LIBINC=-L
|
|
|
|
#LIBS=
|
|
|
|
|
2004-02-17 22:23:59 +00:00
|
|
|
OS=$(shell uname -s)
|
2004-02-17 16:43:47 +00:00
|
|
|
CC=gcc
|
2004-02-17 21:53:14 +00:00
|
|
|
CFLAGS=-Wall --static
|
|
|
|
#-O2 -ggdb
|
|
|
|
INCLUDES=-I ../src/
|
|
|
|
LIBINC=-L ../src
|
2004-02-17 22:23:59 +00:00
|
|
|
|
|
|
|
LIBS=-lnazgul
|
|
|
|
ifeq "Linux" "${OS}"
|
|
|
|
LIBS=-lnazgul -lrt
|
|
|
|
endif
|
2004-02-17 21:53:14 +00:00
|
|
|
|
2004-02-17 16:43:47 +00:00
|
|
|
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
|
2004-02-17 21:53:14 +00:00
|
|
|
$(CC) $(CFLAGS) $< -o $* $(INCLUDES) $(LIBINC) $(LIBS)
|
2004-02-17 16:43:47 +00:00
|
|
|
|