Created
April 10, 2009 00:36
-
-
Save paulerickson/92844 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 PROJ = PG4 | |
2 CSW = -O3 -Wall | |
3 ARCH := $(shell uname) | |
4 ifneq (,$(filter $(ARCH),OpenBSD Linux)) | |
5 >-CC = g++ | |
6 >-EXT = | |
7 >-LSW = | |
8 else | |
9 >-CC = gpp | |
10 >-EXT = .exe | |
11 >-LSW = -s C:\DJGPP\FORTFY22\fortify.o C:\DJGPP\FORTFY22\fmain.o | |
12 endif | |
13 | |
14 $(PROJ)$(CC):>$(PROJ).o tree.o Makefile | |
15 >-$(CC) $(PROJ).o tree.o -o $(PROJ)$(EXT) $(LSW) | |
16 | |
17 $(PROJ).o:>-$(PROJ).cpp Makefile | |
18 >-$(CC) $(PROJ).cpp -c -o $(PROJ).o $(CSW) | |
19 | |
20 tree.o:>tree.cpp Makefile | |
21 >-$(CC) tree.cpp -c -o tree.o $(CSW) | |
22 | |
23 $(PROJ).cpp:>-tree.h Makefile | |
24 >-touch $(PROJ).cpp | |
25 | |
26 tree.cpp:>tree.h Makefile | |
27 >-touch tree.cpp | |
28 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment