source: trunk/src/Makefile.defs @ 13

Last change on this file since 13 was 5, checked in by guillaumeb, 15 years ago

Réorganisation des dossiers

déplacement des fichiers source dans le sous dossier ./src
déplacement de systemc dans le sous-dossier ./lib

File size: 841 bytes
Line 
1#SYSTEMC=/users/outil/systemc/systemc-2.1.v1
2#SYSTEMC=/users/cao/guillaumeb/Desktop/systemc-2.2.0
3INCDIR=-I$(SYSTEMC)/include
4LIBDIR=-L$(SYSTEMC)/lib-$(TARGET_ARCH)
5LIBS=-lsystemc -lm $(EXTRA_LIBS)
6EXE=$(MODULE).x
7
8LBITS := $(shell getconf LONG_BIT)
9ifeq ($(LBITS),64)
10TARGET_ARCH=linux64
11else
12TARGET_ARCH=linux
13endif
14
15
16.SUFFIXES: .c .cc .cpp .o .x
17
18$(EXE): $(OBJSPP) $(OBJS) $(SYSTEMC)/lib-$(TARGET_ARCH)/libsystemc.a
19        ctags -R --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ .
20        $(CPP) $(CFLAGS) $(INCDIR) $(LIBDIR) $^ -o $@
21
22.cpp.o:
23        $(CPP) $(CFLAGS) $(INCDIR) -c $< -o $@
24
25.cc.o:
26        $(CPP) $(CFLAGS) $(INCDIR) -c $< -o $@
27
28.c.o:
29        $(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
30
31clean:
32        rm -f $(OBJS) $(OBJSPP) *~ core
33
34cleanall: clean
35        rm -f Makefile.deps $(EXE)
36
37Makefile.deps:
38        $(CC) $(CFLAGS) $(INCDIR) -M $(SRCS) >> Makefile.deps
39
Note: See TracBrowser for help on using the repository browser.