more generic c templates

This commit is contained in:
lxsameer 2010-12-28 18:57:38 +03:30
parent adecde4890
commit 1614b291c4
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,28 @@
CC = gcc
CFLAGS = -g -Wall
OBJECTS = ::unixname::.o
INCFLAGS =
LDFLAGS = -Wl,-rpath,/usr/local/lib
LIBS =
all: ::unixname::
memdump: $(OBJECTS)
$(CC) -o ::unixname:: $(OBJECTS) $(LDFLAGS) $(LIBS)
.SUFFIXES:
.SUFFIXES: .c .cc .C .cpp .o
.c.o :
$(CC) -o $@ -c $(CFLAGS) $< $(INCFLAGS)
count:
wc *.c *.cc *.C *.cpp *.h *.hpp
clean:
rm -f *.o
.PHONY: all
.PHONY: count
.PHONY: clean

View File

@ -0,0 +1,7 @@
/*
::license::
*/
#ifndef ::UNIXNAME::_H
#define ::UNIXNAME::_H
#endif