Last change
on this file since 11 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
|
Rev | Line | |
---|
[2] | 1 | #SYSTEMC=/users/outil/systemc/systemc-2.1.v1 |
---|
| 2 | #SYSTEMC=/users/cao/guillaumeb/Desktop/systemc-2.2.0 |
---|
| 3 | INCDIR=-I$(SYSTEMC)/include |
---|
| 4 | LIBDIR=-L$(SYSTEMC)/lib-$(TARGET_ARCH) |
---|
| 5 | LIBS=-lsystemc -lm $(EXTRA_LIBS) |
---|
| 6 | EXE=$(MODULE).x |
---|
| 7 | |
---|
| 8 | LBITS := $(shell getconf LONG_BIT) |
---|
| 9 | ifeq ($(LBITS),64) |
---|
| 10 | TARGET_ARCH=linux64 |
---|
| 11 | else |
---|
| 12 | TARGET_ARCH=linux |
---|
| 13 | endif |
---|
| 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 | |
---|
| 31 | clean: |
---|
| 32 | rm -f $(OBJS) $(OBJSPP) *~ core |
---|
| 33 | |
---|
| 34 | cleanall: clean |
---|
| 35 | rm -f Makefile.deps $(EXE) |
---|
| 36 | |
---|
| 37 | Makefile.deps: |
---|
| 38 | $(CC) $(CFLAGS) $(INCDIR) -M $(SRCS) >> Makefile.deps |
---|
| 39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.